PyCharm not using my Sources, os.pwd show /tmp/pycharm

Setting up new project on remote server at ~/Work/PyProject but when I run my main.py os.cwd shows /tmp/pycharm_project_255. I have set the Working Directory everywhere in settings to my   ~/Work/PyProject  so how do I get the paths working such that the code can expects resources to reside in that folder?

0

Hello, 

 

Could you please check the deployment configuration is configured as expected. Please open File | Settings | Build, Execution, Deployment | Deployment and go to the Mappings tab. What is the Deployment path?  Should be ~/Work/PyProject , please note the files from the local side will be deployed to the mentioned location. 

 

How the deployment works https://www.jetbrains.com/help/pycharm/deploying-applications.html

0

请先登录再写评论。