added
This commit is contained in:
16
Mittwoch/module_path.py
Normal file
16
Mittwoch/module_path.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
#Umgebungsvaribale PYTHONPATH wird verwendet zum auslesen
|
||||
sys.path.insert(0, '/opt/project/python3')
|
||||
print("Verzeichnisse mit Modulen")
|
||||
newlist = []
|
||||
newlist2 = list(map(str, sys.path))
|
||||
for path in sys.path:
|
||||
newlist.append(path)
|
||||
print("-", path)
|
||||
|
||||
print(newlist)
|
||||
print("-------------------------------------------------")
|
||||
print(newlist2)
|
||||
Reference in New Issue
Block a user