Fix up vendor for... linux?
This commit is contained in:
parent
b799fedeec
commit
81de013103
114 changed files with 21002 additions and 21002 deletions
|
|
@ -1,22 +1,22 @@
|
|||
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
@REM
|
||||
@REM This source code is licensed under both the MIT license found in the
|
||||
@REM LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||
@REM License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||
@REM of this source tree.
|
||||
|
||||
:: A wrapper to set PYTHONPATH and run a python command with the specified interpreter
|
||||
:: First arg: paths to library that should be made available
|
||||
:: Second arg: path to python interpreter
|
||||
:: Third arg: path to python file that should be run
|
||||
:: Fourth and onwards: any other arg that should be passed
|
||||
@echo off
|
||||
|
||||
:: See https://stackoverflow.com/questions/382587/how-to-get-batch-file-parameters-from-nth-position-on
|
||||
setlocal enabledelayedexpansion
|
||||
set args=;;;;;;%*
|
||||
set args=!args:;;;;;;%1 =!
|
||||
|
||||
set PYTHONPATH=%1;
|
||||
%args%
|
||||
endlocal
|
||||
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
@REM
|
||||
@REM This source code is licensed under both the MIT license found in the
|
||||
@REM LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||
@REM License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||
@REM of this source tree.
|
||||
|
||||
:: A wrapper to set PYTHONPATH and run a python command with the specified interpreter
|
||||
:: First arg: paths to library that should be made available
|
||||
:: Second arg: path to python interpreter
|
||||
:: Third arg: path to python file that should be run
|
||||
:: Fourth and onwards: any other arg that should be passed
|
||||
@echo off
|
||||
|
||||
:: See https://stackoverflow.com/questions/382587/how-to-get-batch-file-parameters-from-nth-position-on
|
||||
setlocal enabledelayedexpansion
|
||||
set args=;;;;;;%*
|
||||
set args=!args:;;;;;;%1 =!
|
||||
|
||||
set PYTHONPATH=%1;
|
||||
%args%
|
||||
endlocal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue