[Debian-med-packaging] Bug#516037: gnumed-client: hard-codes the location to python module
Karsten Hilbert
Karsten.Hilbert at gmx.net
Fri Feb 20 13:57:20 UTC 2009
On Thu, Feb 19, 2009 at 09:43:27AM +0100, RKI Andreas wrote:
>> Looking more closely, there is an even simpler way than that of
>> pychecker. Something like this should directly work:
>> python -m Gnumed.wxpython.gnumed
>
> I'll think about this.
The attached script would be my suggestion. If that looks OK
I will commit it to the upstream CVS.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
-------------- next part --------------
#!/bin/bash
#==================================================
# This shell script is intended to be placed in
# /usr/bin/ and should be run to start a GNUmed
# client.
#
# $Source: /sources/gnumed/gnumed/gnumed/dists/Linux/gnumed,v $
# $Id: gnumed,v 1.21 2009/02/20 10:45:44 ncq Exp $
# license: GPL
# Karsten Hilbert, Sebastian Hilbert, Andreas Tille
#--------------------------------------------------
# for debugging this script
# set -x
OPTIONS=$@
# The system-wide configuration file for backend profiles.
SYSCONF="/etc/gnumed/gnumed-client.conf"
if [ ! -e ${SYSCONF} ] ; then
echo "Global config file ${SYSCONF} missing."
exit 1
fi
# source systemwide startup extension shell script if it exists
if [ -r /etc/gnumed/gnumed-startup-local.sh ] ; then
. /etc/gnumed/gnumed-startup-local.sh
fi
# source local startup extension shell script if it exists
if [ -r ${HOME}/.gnumed/scripts/gnumed-startup-local.sh ] ; then
. ${HOME}/.gnumed/scripts/gnumed-startup-local.sh
fi
# now run the client
python -m Gnumed.wxpython.gnumed ${OPTIONS}
# sync the discs just in case
sync
More information about the Debian-med-packaging
mailing list