This is a read-only mirror of pymolwiki.org
Difference between revisions of "Plugindirectory"
Jump to navigation
Jump to search
m (21 revisions) |
(superseded) |
||
Line 7: | Line 7: | ||
== Introduction == | == Introduction == | ||
+ | |||
+ | <div style="padding: 10px; border: 4px solid red; text-align: center; background-color: #fcc"> | ||
+ | This script was superseded by the [[Plugin Manager]] which was introduced in PyMOL 1.5.0.5 | ||
+ | </div> | ||
This page describes how to set up a personal plugin directory, that will automatically install plugins found herein. | This page describes how to set up a personal plugin directory, that will automatically install plugins found herein. |
Revision as of 13:38, 6 August 2015
Type | Python Module |
---|---|
Download | plugins/__init__.py |
Author(s) | Thomas Holder |
License | BSD |
This code has been put under version control in the project Pymol-script-repo |
Introduction
This script was superseded by the Plugin Manager which was introduced in PyMOL 1.5.0.5
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.
Adding Pymol-script-repo to PyMOL search path
You should have the Pymol-script-repo directory added to your Python search path. In Pymol-script-repo, is located the folder plugins, which holds the plugin to be automatically installed.
We need to import module plugins (folder Pymol-script-repo/plugins) before the GUI launches. So insert into your $HOME/.pymolrc file:
# eventually add ~/Pymol-script-repo to sys.path
import sys, os
sys.path.append(os.path.expanduser('~/Pymol-script-repo'))
# load the module
import plugins
For windows users
- Open notepad
- Paste lines from above
- Save under: C:/Users/YOURNAME/pymolrc.pym (Set: "Save as type" to "All files")
For Ubuntu/Mint users
- gedit ~/.pymolrc
- Paste lines from above
- Save and exit