[PyMOL] Path problem when running a script

2013-02-12 Thread Thomas, Jens
Hi, I'm trying to run the align_all.py script (http://pldserver1.biochem.queensu.ca/~rlc/work/pymol/align_all.py) in PyMol running on Linux. I've put the script in /opt/pymol/scripts, and in my .pymolrc file, I have the following: sys.path.append(/opt/pymol/scripts) and if I print sys.path

Re: [PyMOL] Path problem when running a script

2013-02-12 Thread Thomas Holder
Hi Jens, the run command is not identical to the python import statement. It does not search sys.path but takes an absolute or relative (from the current working directory) file name. Both of these will work: PyMOLrun /opt/pymol/scripts/align_all.py PyMOLimport align_all See also: