The following forum message was posted by alexdk at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4085985:

Fabio, 

Thank you for your response. It's still not working, but now in a strange way.
If I invoke the interpreter as an external tool in eclipse (which I set to call
usr/bin/python) then my importing the relevant modules works fine. But if I
try to run a script with the same import statement, it fails.

The script does modify $PYTHONPATH. Is it possible that something in the run
configuration is destroying this variable? I believe the run configuration 
should
modify it, but hopefully it appends and not destroys. Is there any way to fix
this?


There is another alternative, as the original script sets up the variables and
calls python, so to run a script I would run the script to run my python script,
like this:

./libtbx.python explore_cctbx_crystal.py

Is it possible to trick Eclipse into running this command as the build command?
I tried making this script the executable, but Eclipse is too clever and figures
out it's calling usr/bin/python after set the interpreter executable to be the
script.

Thanks again, 

Alex  

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to