blob: d83b5b8510cc01584fc0f0c646e87e62fb4c187a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
diff --git a/bin/sparky b/bin/sparky
index 8b51212..270723a 100644
--- a/bin/sparky
+++ b/bin/sparky
@@ -4,18 +4,6 @@
#
# -----------------------------------------------------------------------------
-# Figure out Sparky installation directory from $0.
-#
-set sparky_exe = "$0"
-while (-l "$sparky_exe")
- set ls_sparky_exe = `ls -l "$sparky_exe"`
- set sparky_exe = `echo "$ls_sparky_exe" | sed 's/.* -> //'`
-end
-set sparky_bin = `dirname "$sparky_exe"`
-set sparky_bin = `cd "$sparky_bin"; pwd`
-set sparky_inst = `dirname "$sparky_bin"`
-
-# -----------------------------------------------------------------------------
# Sparky uses the SPARKY_INSTALL environment variable to find its
# application resource file and print prolog file.
#
@@ -25,7 +13,7 @@ setenv SPARKY_INSTALL "$sparky_inst"
# If Python is available start Sparky as a Python extension.
# Otherwise the standalone version of Sparky is started.
#
-set PYTHON = "$SPARKY_INSTALL/python2.5/bin/python2.5"
+set PYTHON = GENTOO_PYTHON
if (! -e "$PYTHON") then
set PYTHON = python2.5
endif
@@ -79,7 +67,7 @@ if ($status == 0) then
# ---------------------------------------------------------------------------
# Add the Sparky package and Tkinter to the Python path
#
- set SPARKY_PYTHONPATH = "$SPARKY_INSTALL/python:$SPARKY_INSTALL/python/lib-tk"
+ set SPARKY_PYTHONPATH = "$SPARKY_INSTALL/python:$SPARKY_INSTALL/python/sparky"
if ($?PYTHONPATH) then
setenv PYTHONPATH "${SPARKY_PYTHONPATH}:$PYTHONPATH"
else
|