Python Forum

Full Version: set 'default' cwd in python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to know how did I got my cwd?
os.getcwd()
displays
C:\Users\j\PycharmProjects\HelloWorld 
I know I can use
os.chdir()
to change it...

but I want to know why is this the default and how to make a new path that I like as default?
os.getcwd is the path where program is run from.