File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
photonlib-python-examples Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ if exist build rmdir /S /Q build
88python setup.py bdist_wheel
99popd
1010
11+ :: Setup robotpy
12+ pip install robotpy
13+
14+
1115:: Add the output directory to PYTHONPATH to make sure it gets picked up ahead of any other installs
1216set PHOTONLIBPY_ROOT = %~dp0 ..\photon-lib\py
1317set PYTHONPATH = %PHOTONLIBPY_ROOT%
@@ -27,5 +31,8 @@ if "%~1"=="" (
2731:: Move to to the right example folder
2832cd %~1
2933
34+ :: Setup project
35+ pip install .
36+
3037:: Run the example
3138robotpy sim
Original file line number Diff line number Diff line change 1111export PHOTONLIBPY_ROOT=../photon-lib/py
1212export PYTHONPATH=$PHOTONLIBPY_ROOT
1313
14+ # Setup robotpy
15+ pip install robotpy
16+
1417# If an example to run is not provided, run all examples
1518if [ $# -eq 0 ]
1619 then
2629# Move to the right example folder
2730cd $1
2831
32+ # Setup project
33+ pip install .
34+
2935# Run the example
3036robotpy sim
You can’t perform that action at this time.
0 commit comments