Difference between revisions of "Plugindirectory"

From PyMOLWiki
Jump to: navigation, search
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== 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
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 [http://www.pymolwiki.org/index.php/Git_intro Pymol-script-repo].
== Adding Pymol-script-repo to PyMOL search path ==
You should have the "Pymol-script-repo" directory  or another directory with your plugins to the PyMOL search path.
We need to import and also import folder '''plugins''' before the GUI launches. So insert into your [[pymolrc|$HOME/.pymolrc]] file:
=== For windows users ===
# Open notepad
# 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, [http://www.pymolwiki.org/index.php/Git_intro Pymol-script-repo].
For a color coded view:

Latest revision as of 09:18, 12 November 2018

This script was superseded by the Plugin Manager which was introduced in PyMOL