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:
16
pyGTKtalog
16
pyGTKtalog
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user