Is there a way to set the target script with some relative path?

Hi since I'm using pycham in 2 differet machines, is there a way to establish the target folder with some kind of relative patch I sync the project folder, but they are not in the same folder in each pc.

0
3 comments

Hi, you could use a VCS (e.g. Git) to sync your project files between different machines. PyCharm has a nice support for it: https://www.jetbrains.com/help/pycharm/using-git-integration.html

But if you've never used Git, it has a learning curve.

0

Thanks, but it won't resolve the problem, since the project has an absolute path to the project. That's why I want to find a way to set a relative path in the config files. Al I know it won't work because I already use GitHub.

0

Could you provide an example of what you're trying to do and what kind of paths do you need?

If you want to have a single path in the configs that would be valid on any machine, you could use symlinks, e.g. save your project anywhere you wish, and then symlink the project root to the required path.

But I may be misunderstanding what do you actually need.

0

Please sign in to leave a comment.