Re: [Twisted-Python] Twisted Trial
The various answers recommending version control are just heading off in a direction that wasn't asked about at all! :-) Sorry if I sound grouchy, but the OP hasn't done anything to warrant being curtly told to just use version control, especially when that's not a solution to the problem he's running into. There should be no need to add that people often have multiple versions (branches, often) checked out and want to swap between using them and have the right version picked up by Python. That's part of the point/use of combinator and the *branch commands, as many people here already know. Torsten, you say your code doesn't work when you have PYTHONPATH set. Can you be more specific? Send us the output showing it not working, etc? Terry
Thank you all for your replies. @Christian: I should have mentioned that. The current directory is in the pythonpath. In the variable PYHTONPATH the dot is set and when I walk through the filesystem, starting python from different locations, the current path is always set in sys.path. Hence, I asssume that PythonPath is set correctly. So your suggestion, what I thought would work
cd \original_project trial package_to_test
cd \modified_project trial package_to_test does actually not work. Who knows why...
@Terry:
Torsten, you say your code doesn't work when you have PYTHONPATH set. Can you be more specific? Send us the output showing it not working, etc?
Actually I'd love to do that, but I really don't know what to send. When I run the trial as suggested by Christian (see above), the trial runs every time for the modified package, even if I am in \original_project. How do I know this? Well, the trial fails at the point where the modified version fails. If I delete the modified version from the pythonpath, everything runs fine. I have never really used a version control system I have to admit. I thought of control systems to log changes which can in case of severe damage or what ever reason be made undone. But if I can execute different versions of the project, e.g. in my case the initial version and the last modified, just by saying run this one or that one, I am glad to use it. Can this be done (excuse my probably dumb question)? Can someone please give me catchword to search for? As I looked briefly in the bazaar guide (http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html) I wasn't able to find anything helpful. Thanks again for your help! I really appreciate it! Cheers, Torsten
participants (2)
-
Terry Jones -
Torsten A.