Re: python os.chdir() Windows Error 2

2019-04-02 Thread grossmudda
Ahhh now I see!! I actually was trying to import a file, now I know it´s just changing the directory. Next time I´d better read the description of the tool carefully... Thank you so much!! You helped a lot! -- https://mail.python.org/mailman/listinfo/python-list

Re: python os.chdir() Windows Error 2

2019-04-01 Thread eryk sun
On 4/1/19, grossmu...@gmail.com wrote: > > os.chdir('C:\\Users\\Ayla\\Documents\\Uni\\Master_Umweltingenieurwesen\\ > Study_Project\\kerschbaum_input') > os.chdir('C:/Users/Ayla/Documents/Uni/Master_Umweltingenieurwesen/ > Study_Project/kerschbaum_input') These string literals should work if the

Re: python os.chdir() Windows Error 2

2019-04-01 Thread Calvin Spealman
What are you actually trying to do? os.chdir() simply changes the current working directory of your process. It doesn't read any data or "import" or really have any affect on its own. The current directory is the directory you ran the script from in the first place, which is where files will be op

python os.chdir() Windows Error 2

2019-04-01 Thread grossmudda
Hey guys, I´ve got a problem importing a file with os.chdir. I´ve done a lot of research but still I can´t fix it. For any suggestions I would be so thankful! This is what I´ve tried so far: import os import numpy as np import matplotlib.pyplot as plt os.chdir('C:\Users\Ayla\Documents\Uni\Mas