Jack,

* Jack Howarth <howa...@bromo.med.uc.edu> [2003-11-11 11:17] wrote:
>       What exactly is the recommended approach for installing
> and maintaining custom pymol python scripts? While I have seen
> messages describing custom pymol scripts, their installation isn't
> described. Should I put them in the python directory tree or in
> the pymol directory tree with the rest of pymol's own python scripts?
> Or is there a way to have a system wide or local user directory
> that python will check for scripts?                

For myself, I keep the scripts in a directory (~/prog/python) that is
included in my PYTHONPATH environment variable.  The script that starts
pymol then appends to this path what it needs for itself.  I then also
automatically load the scripts via my .pymolrc file:

run /home/rlc/prog/python/load_models.py
run /home/rlc/prog/python/load_sep.py
run /home/rlc/prog/python/color_b.py
run /home/rlc/prog/python/stride_ss.py
run /home/rlc/prog/python/color_by_restype.py
run /home/rlc/prog/python/color_by_attype.py
run /home/rlc/prog/python/draw_cell.py
run /home/rlc/prog/python/draw_symops_cctbx.py
run /home/rlc/prog/python/data2bfactor.py

There is probably a better way, especially for a system-wide approach.

>       I am looking for an approach that will not require me
> to reinstall all of my custom pymol python scripts everytime
> I upgrade python and/or pymol. Thanks in advance for any
> hints.

Cheers,
Rob
-- 
Robert L. Campbell, Ph.D.                         <r...@post.queensu.ca>
Senior Research Associate                            phone: 613-533-6821
Dept. of Biochemistry, Queen's University,             fax: 613-533-2497
Kingston, ON K7L 3N6  Canada       http://adelie.biochem.queensu.ca/~rlc
    PGP Fingerprint: 9B49 3D3F A489 05DC B35C  8E33 F238 A8F5 F635 C0E2

Reply via email to