Ich habe ein paar Module geschrieben, die im Userverzeichnis Scripts/python/module/... gut funktionieren. Die jeweiligen Unterverzeichnisse "pythonpath " mit "tools.py" sind automatisch im Pfad, so dass "from tools import tool1" klappt.
Mir gelingt es aber nicht, eine solche Konstruktion innerhalb eines Dokuments aufzubauen.
Meine manifest.xml enthält die Zeilen
Code: Alles auswählen
<manifest:file-entry manifest:media-type="" manifest:full-path="Scripts/python/testmodul/start.py"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/python/testmodul/"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/python/"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/"/>
Mit den zusätzlichen Zeilen ist die Datei wenigstens startbereit:
Code: Alles auswählen
<manifest:file-entry manifest:media-type="" manifest:full-path="Scripts/python/testmodul/pythonpath/tools.py"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/python/testmodul/pythonpath/"/>
Volker
_________________
Moderation: Zur übersichtlichen Darstellung vom Programmcode im Text [code][/code] Tags gesetzt. — lorbass, Moderator