简体   繁体   中英

Accesing Python code (project) with two different machines

First of all I am relatively new in Python and maybe missing something about setting up a project in PyDev. I use PyDev with eclipse and windows OS.

I am trying to work on the same project with two different machines. Basically my code is situated in a shared folder on Dropbox. I would like to access the same project (not necessarily simultaneously) on both machines.

When I try to import the files in the project folder, PyDev on my second machine creates another file that is specific to it. Thus not the same file but a copy of the original project.

I am proficient in MATLAB and I expect, probably mistakenly, the same file instances to be read on both machines.

I feel the answer is quite simple but could bot bump into it after an hour of googling.

Thanks for your help in advance...

Have you thought of using GIT? You can create the project on one machine and clone it on the other. If you can't network the machines, sign up for github for bitbucket. It really a huge jump from using drop box. You can also use subversion from Unfuddled, which I don't recommend. You get one account for free with Unfuddled.

If you are thinking of sharing code between multiple machines, you'd be better off using tools made specifically for that. They're called revision control system. You can read/try SVN and Git. You can probably get started with Github easily if you don't mind your code being public.

As for the project in Eclipse, there is a checkbox you can uncheck that moves the content of the project to your workspace, which is not what you want since you want to keep it in the Dropbox folder. I think it's called "Copy project into workspace".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM