Dec-06-2018, 09:29 AM
(This post was last modified: Dec-06-2018, 09:30 AM by saisankalpj.)
parent/ one/ __init__.py sample1.py two/ __init__.py sample.pyWhen i run the code through command prompt like <c:/users/parent> python two\sample.py,print(os.getcwd())gives "c:/users/parent".But when i run sample.py through Pycharm, print(os.getcwd())gives "c:/users/parent/two".Is there a way to set working directory in Pycharm so that in all instances it takes working directory as "c:/users/parent"