Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-04T14:25:44.920Z
Answers.LastActivityDate: 2020-05-04T14:25:44.920Z
Answers.UserDisplayName: bunher
Body: <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>
  
Tags: <pymol>
Title: What is PyMOLs search path for scripts?
ThreadText: # 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](https://pymolwiki.org/index.php/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.
  
  
  ---
  
  