<p>You can use <a href="https://pymolwiki.org/index.php/Pymolrc" rel="nofollow noreferrer">pymolrc</a> and create aliases to your scripts.</p>

<p>If your script is located e.g. in</p>

<pre><code>/Users/tillyboy/pymolscripts/myscript1.pml
</code></pre>

<p>Just enter this line to your pymolrc:</p>

<pre><code>alias myscript1, run /Users/tillyboy/pymolscripts/script1.pml
</code></pre>

<p>Now myscript1 is available for all your Pymol sessions independent of your current working directory.</p>

CC BY-SA 4.0
2020-05-04T14:25:44.920Z
2020-05-04T14:25:44.920Z
bunher
<p>I know I can run my PyMOL scripts if I specify a valid path from the current working directory and also using absolute paths, but can I have a central script repository, so I don't always need to specify the full path or copy my scripts around from project to project?</p>

<p>Environment info:</p>

<pre><code>Kernel: Linux 5.6.8-1-MANJARO x86_64
Python: 3.8.2
Python2: 2.7.18
PyMOL: 2.3.0 Open-Source
</code></pre>

<pymol>
What is PyMOLs search path for scripts?
# What is PyMOLs search path for scripts?

(Asked by: username_0 on 2020-05-04)

I know I can run my PyMOL scripts if I specify a valid path from the current working directory and also using absolute paths, but can I have a central script repository, so I don't always need to specify the full path or copy my scripts around from project to project?
Environment info:
Kernel: Linux 5.6.8-1-MANJARO x86_64
Python: 3.8.2
Python2: 2.7.18
PyMOL: 2.3.0 Open-Source

**Tags:** pymol

---

## 1 answers

### Answer by username_1 on 2020-05-04. Score: 1

You can use pymolrc and create aliases to your scripts.
If your script is located e.g. in
/Users/tillyboy/pymolscripts/myscript1.pml

Just enter this line to your pymolrc:
alias myscript1, run /Users/tillyboy/pymolscripts/script1.pml

Now myscript1 is available for all your Pymol sessions independent of your current working directory.


---

