This is a read-only mirror of pymolwiki.org

Difference between revisions of "Plugindirectory"

From PyMOL Wiki
Jump to navigation Jump to search
m (1 revision)
 
(5 intermediate revisions by 3 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 1.5.0.5
This page describes how to set up a personal plugin directory, that will automatically install plugins found herein.
+
</div>
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 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 [[pymolrc|$HOME/.pymolrc]] file:
 
 
 
=== For windows users ===
 
# Open notepad
 
# Write (Remember forward slashes)
 
import sys
 
sys.path.append('C:/Users/YOURNAME/Documents/Pymol-script-repo')
 
import plugins
 
Save under: '''C:/Users/YOURNAME/pymolrc.pym''' (Set: "Save as type" to "All files")
 
 
 
=== For Ubuntu/Mint users ===
 
gedit ~/.pymolrc
 
Write
 
import sys
 
sys.path.append('/home/YOURNAME/Software/pymol/Pymol-script-repo')
 
import plugins
 
Save and exit
 
 
 
== Python Code ==
 
 
 
{{Template:PymolScriptRepoDownload|plugins/__init__.py}}
 
 
 
 
 
[[Category:Plugins]]
 

Latest revision as of 03:24, 10 December 2018

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