Hi Arne,

You could modify it like this:

python

# make a list of all your directories w/scripts

known_directories = [ "/path/to/dir1", "/path/to/dir2", ... ]

import glob

for p in known_directories:
    for f in glob.glob(p+/*.py"):
       cmd.do("run " + f)

python end

Cheers,

-- Jason

On Mon, Sep 19, 2011 at 5:01 PM, Arne Dieckmann <adiec...@googlemail.com> wrote:
> That is a hot tip. However, can I also specify some path that would tell 
> pymol the location of my scripts? I have a number of scripts that I need to 
> call while already in Pymol and I do not want to type in the complete path 
> every time. Also, copying these scripts to the current working directory is 
> not a really good solution.
>
>
> Cheers,
> Arne
>
>
>
> On Sep 19, 2011, at 12:48 AM, Thomas Holder wrote:
>
>> Hi Lina,
>>
>> you can put a .pymolrc file in your home directory, it's a script that
>> PyMOL will read on each startup. You can have it either in PyMOL syntax
>> or as a python script, depending on the file extension.
>>
>> /home/lina/.pymolrc      (in PyMOL syntax)
>> /home/lina/.pymolrc.py   (in python syntax)
>>
>> http://www.pymolwiki.org/index.php/Pymolrc
>>
>> Then create a directory -- lets say /home/lina/.pymol -- and put the
>> PyMOLWiki scripts there. And in your .pymolrc you put lines like these
>> (PyMOL syntax):
>>
>> run /home/lina/.pymol/Grepsel.py
>> run /home/lina/.pymol/Polarpairs.py
>> run /home/lina/.pymol/Propka.py
>> ... and so on
>>
>> Cheers,
>>   Thomas
>>
>> lina wrote, On 09/19/11 07:10:
>>> Hi,
>>>
>>> Just a quick Q:
>>>
>>> How can I better organize those *.py I mainly obtained from pymol wiki,
>>> not those can be installed by the plugins,
>>>
>>> pymol run in different directory each time.
>>>
>>> Thanks,
>>>
>>> --
>>> Best Regards,
>>>
>>> lina
>>
>> --
>> Thomas Holder
>> MPI for Developmental Biology
>> Spemannstr. 35
>> D-72076 Tübingen
>>
>> ------------------------------------------------------------------------------
>> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
>> Learn about the latest advances in developing for the
>> BlackBerry&reg; mobile platform with sessions, labs & more.
>> See new tools and technologies. Register for BlackBerry&reg; DevCon today!
>> http://p.sf.net/sfu/rim-devcon-copy1
>> _______________________________________________
>> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
>> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
>> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>



-- 
Jason Vertrees, PhD
PyMOL Product Manager
Schrodinger, LLC

(e) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to