commit message from python script
This commit is contained in:
18
Lehrer/pythonkurs/Mittwoch/modulpath
Executable file
18
Lehrer/pythonkurs/Mittwoch/modulpath
Executable file
@@ -0,0 +1,18 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
# Umgebungsvariable PYTHONPATH wird verwendet, falls vorhanden
|
||||
# PYTHONPATH=p1:p2:p2 ./modulpath
|
||||
# oder
|
||||
# PYTHONPATH=p1:p2:p2
|
||||
# export PYTHONPATH
|
||||
# ./modulpath
|
||||
|
||||
# Eigenes Modulverzeichnis hinzufuegen
|
||||
sys.path.insert(0, '/opt/project/python3')
|
||||
|
||||
print("Verzeichnisse mit Modulen:")
|
||||
|
||||
for path in sys.path:
|
||||
print(" ", path)
|
||||
Reference in New Issue
Block a user