ich habe ein Python-Script bei dem ich auf eine weitere Datei zugreife.
Code: Alles auswählen
with open('datei.txt', 'r') as f:
Ich hoffe ihr versteht meine doch recht kompliziert gestellte Frage.
Liebe Grüße
Code: Alles auswählen
with open('datei.txt', 'r') as f:
Danke dir.
Code: Alles auswählen
from Foundation import NSBundle
bundle = NSBundle.mainBundle()
file_path = bundle.pathForResource_ofType_(os.path.splitext("datei.txt")[0], os.path.splitext("datei.txt")[1][1:])
with open(file_path, "r") as f: