Dear pyMol users,
I am developing a python script for pyMol. If a user clicks File->Run
and selects the script (for example "c:/test/myScript.py"), how do I
determine the path of the script, i.e. ("c:/test/") from inside the
running script?
I tried various python possibilities (os.path.abspath(__file__),
inspect.getfile(sys._getframe(1))), all of them point to the pyMol
__init__.py file which is not what I need.Thank you. Petr Benes. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ PyMOL-users mailing list ([email protected]) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/[email protected]
