création d'un "shabang" custom pour PYTHONPATH
This commit is contained in:
parent
aa5e68b261
commit
36ff9299c0
1 changed files with 6 additions and 0 deletions
6
python.sh
Normal file
6
python.sh
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# À lancer par bash dans un shabang de la forme :
|
||||||
|
#!/bin/bash /usr/scripts/python.sh
|
||||||
|
#Ceci permet alors de lancer python avec un PYTHONPATH custom (/usr/scripts)
|
||||||
|
#pour éviter de l'importer dans chaque script
|
||||||
|
|
||||||
|
/usr/bin/env PYTHONPATH=/usr/scripts python "$@"
|
Loading…
Add table
Add a link
Reference in a new issue