19 lines
366 B
Python
Executable File
19 lines
366 B
Python
Executable File
#! /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)
|