From: Michael B. <mb...@gm...> - 2003-07-19 12:21:44
|
Hi, On Unix-like systems, stock pymol installs all images/data files/demo stuff under /usr/lib/python2.x/site-packages/pymol/. I believe this is a violation of the File Hierachy Standard (FHS) (well, at least its spirit, I'm not sure about the letter), as only architecture-dependent files should be under /usr/lib. Thus, I've cleaned up my current patch for pymol-0.88, replacing $PYMOL_PATH with $PYMOL_DATA_PATH and $CHEMPY_DATA_PATH, under the observation that $PYMOL_PATH is 99% only needed in order for the examples and other stuff to find data. Currently, I put everything under data/{pymol,chempy) under /usr/share/pymol and test/dat/*, data/tut/*, examples/devel/cgo03.py into /usr/share/pymol/demo. This can of course be tuned at will. One needs to set $PYMOL_DATA_PATH and $CHEMPY_DATA_PATH of course, I'm doing this in a small wrapper script: #!/bin/sh # debian wrapper script for pymol export PYMOL_DATA_PATH=/usr/share/pymol export CHEMPY_DATA_PATH=/usr/share/chempy python /usr/lib/python2.2/site-packages/pymol/__init__.py I've attached the patch, do you think that would make sense for pymol proper as well? If not, I'll have to keep maintaining it in the debian package. cheers, Michael |