[Python-de] import und vollqalifizierter Dateiname
Andreas Jung
lists at zopyx.com
Mi Aug 24 09:27:37 EDT 2016
Bitte was?
-aj
Am 24. August 2016 um 15:20 schrieb Hermann Riemann <
nospam.compb7 at hermann-riemann.de>:
> Beispiel:
>
> 5 unterschiedliche Dateien existieren:
>
> /a/b/c/p1.py
> /u/v/w/p2.py
> /x/y/z/p2.py
> /u/v/w/p3.py
> /x/y/z/p3.py
>
> Die ersten beide Zeilen von /a/b/c/p1.py wären,
> wenn bei import string erlaubt wäre:
>
> import "/u/v/w/p2.py"
> import "/x/y/z/p3.py"
>
> Hermann
> der das Problem nur ungern mit
> Kopiererei auf /tmp und Aufruf von
> os.system("python3 /tmp/p0.py") lösen würde.
>
> --
> www.hermann-riemann.de
> _______________________________________________
> python-de maillist - python-de at python.org
> https://mail.python.org/mailman/listinfo/python-de
>
Mehr Informationen über die Mailingliste python-de