This is a read-only mirror of pymolwiki.org

Difference between revisions of "PYMOL PATH"

From PyMOL Wiki
Jump to navigation Jump to search
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 22: Line 22:
  
 
* '''<tt>PYMOL_PATH/examples/</tt>''' Example PyMOL and Python scripts
 
* '''<tt>PYMOL_PATH/examples/</tt>''' Example PyMOL and Python scripts
* '''<tt>PYMOL_PATH/modules/pmg_tk/startup/
+
* '''<tt>PYMOL_PATH/modules/pmg_tk/startup/</tt>'''
 
* '''<tt>PYMOL_PATH/run_on_startup.py</tt>''' A python script run at startup, before <tt>.pymolrc</tt>. See [[Plugin Manager]] for details.
 
* '''<tt>PYMOL_PATH/run_on_startup.py</tt>''' A python script run at startup, before <tt>.pymolrc</tt>. See [[Plugin Manager]] for details.

Latest revision as of 02:04, 27 June 2016

The PYMOL_PATH environmental variable points to the root PyMOL directory. It contains internal PyMol code and core modules. It is also the location for plugins installed via the Plugin Manager. The variable should be set automatically by PyMOL, and should not normally need to be changed by the user.

Standard Locations

Windows: C:\Program Files\PyMOL\

Mac: /Applications/MacPyMOL.app/pymol

Ubuntu (Open-source PyMOL): /usr/lib/python2.7/dist-packages/pymol

Determining the location

For other operating systems or non-standard installation locations, the PYMOL_PATH can be determined by running the following command from within PyMOL:

print os.environ['PYMOL_PATH']


Contents

The contents of PYMOL_PATH should generally not be modified, but a few locations can be useful to know:

  • PYMOL_PATH/examples/ Example PyMOL and Python scripts
  • PYMOL_PATH/modules/pmg_tk/startup/
  • PYMOL_PATH/run_on_startup.py A python script run at startup, before .pymolrc. See Plugin Manager for details.