Public bug reported:

If you want alter CHEMPY_DATA or PYMOL_DATA variable you have to copy
and modify startup script which is not very comfortable for non-
expirienced users. But this operation is needed if you want use custom
*.pkl fragments and you a user without write permissions on
/usr/share/chempy

At the moment startup script looks like this:

#!/bin/sh
# debian wrapper script for pymol

export PYMOL_PATH=`python2.7 -c "from imp import find_module; print 
find_module('pymol')[1]"`
export PYMOL_DATA=/usr/share/pymol
export CHEMPY_DATA=/usr/share/chempy

python2.7 -m pymol.__init__ ${1+"$@"}

Better approach would be:

if [ ! -n "$PYMOL_DATA" ]
 then export PYMOL_DATA=/usr/share/pymol
fi

if [ ! -n "$CHEMPY_DATA" ]
 then export CHEMPY_DATA=/usr/share/chempy
fi

so user will have opportunity to start pymol like this: 
$ CHEMPY_DATA=/home/$USER/chempy pymol

** Affects: pymol (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/925445

Title:
  modify pymol startup script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pymol/+bug/925445/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to