1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* Changed the way that program starts: it's possible to run it from its

directory or place in desired directory, copy pyGTKtalog script in
   place pointed in $PATH (or not), and change path to pygtktalog.py
   file.
This commit is contained in:
2008-05-08 11:58:41 +00:00
parent d0b23f9202
commit 1eaad783f9
3 changed files with 33 additions and 35 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/sh
# Simple wraper to launch python application from desired place.
# adjust to your needs:
data_dir="/home/gryf/Devel/Python/pyGTKtalog"
# Simple shell wraper to launch pyGTKtalog
# change path to pygtktalog.py file full path, then you can move this shell
# script to desired place (like /usr/bin, /usr/local/bin, ~/bin and so on)
path_to_gtktalog_directory="."
# python interpreter
python_intrpreter="/usr/bin/python"
# don't change anything below.
current_dir="`pwd`"
cd $data_dir
exec $python_intrpreter -OO pygtktalog.py "$current_dir" "$@"
#exec $python_intrpreter pygtktalog.py "$current_dir" "$@"
exec $python_intrpreter -OO ${path_to_gtktalog_directory}/pygtktalog.py "$@"