Difference between revisions of "Plugindirectory"

From PyMOLWiki
Jump to: navigation, search
(Adding Pymol-script-repo to PyMOL search path)
(Python Code)
Line 32: Line 32:
For a color coded view:
For a color coded view:

Revision as of 11:26, 3 December 2011


This page describes how to set up a personal plugin directory, that will automatically install plugins found herein. It supports single python files as well as directories which contain a __init__.py file.

This plugin is being used in the Pymol-script-repo project Pymol-script-repo.

Adding Pymol-script-repo to PyMOL search path

You should have the Pymol-script-repo directory added to your PyMOL search path. In Pymol-script-repo, is located the folder plugins, which holds the plugin to be automatically installed.

We need to import import folder Pymol-script-repo/plugins before the GUI launches. So insert import plugins into your $HOME/.pymolrc file:

For windows users

  1. Open notepad
  2. Write (Remember forward slashes)
import sys
import plugins

Save under: C:/Users/YOURNAME/pymolrc.pym (Set: "Save as type" to "All files")

For Ubuntu/Mint users

gedit ~/.pymolrc


import sys
import plugins

Save and exit

Python Code

This code has been put under version control. In the project, Pymol-script-repo.

For a color coded view: