ioError: [Errno 2] Keine solche Datei oder Verzeichnis:
'c:\users\Myusername\pycharmProjects\Ts\copy.TXTS. Versuchte, einen Pfad anzugeben, wie Sie im Fehler sehen können. < /p>
Code: Select all
import os
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
my_file = os.path.join(THIS_FOLDER, 'copy.txt')