Dec-06-2018, 07:58 PM
(Dec-06-2018, 07:40 PM)saisankalpj Wrote: os.getcwd()as E:\div_code\my_pack\two,when i run sample_2.py.I want the output to be E:\div_code\my_packYou have to look at Project or Content Root.
I don't use Pycharm,but VS Code.
You should also know the difference between a package(where files is access by import statement),
and just collection of your python files in a folder.