aboutsummaryrefslogtreecommitdiff
path: root/development/gazpacho/bin_gazpacho.patch
diff options
context:
space:
mode:
authorMikko Varri <vmj@linuxbox.fi>2010-05-13 00:24:37 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:24:37 +0200
commit525845cb47089c45f9145a8de5104190a385d1d9 (patch)
tree187808e3b3630bea0f038fb8a8778cef6b74e4f8 /development/gazpacho/bin_gazpacho.patch
parentbce765a96489a21222c899d217a1e59f3528a226 (diff)
development/gazpacho: Updated for version 0.7.2
Diffstat (limited to 'development/gazpacho/bin_gazpacho.patch')
-rw-r--r--development/gazpacho/bin_gazpacho.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/development/gazpacho/bin_gazpacho.patch b/development/gazpacho/bin_gazpacho.patch
new file mode 100644
index 0000000000000..0c59bd8c7bd0a
--- /dev/null
+++ b/development/gazpacho/bin_gazpacho.patch
@@ -0,0 +1,33 @@
+--- bin/gazpacho.orig 2009-08-17 00:15:26.000000000 +0300
++++ bin/gazpacho 2009-08-17 00:15:44.000000000 +0300
+@@ -40,30 +40,6 @@
+ appname,
+ string.split(sys.version)[0]))
+
+-# Figure out the directy which is the prefix
+-# path-of-current-file/..
+-currentdir = os.path.dirname(os.path.abspath(sys.argv[0]))
+-basedir = os.path.abspath(os.path.join(currentdir, '..'))
+-
+-# Add the base directory where the application is installed in to sys.path
+-if os.path.exists(os.path.join(basedir, 'lib')):
+- if sys.platform == 'win32':
+- pythondir = os.path.join(basedir, 'Lib', 'site-packages')
+- else:
+- pythondir = os.path.join(basedir, 'lib',
+- 'python%d.%d' % sys.version_info[:2],
+- 'site-packages')
+- if not os.path.exists(pythondir):
+- raise SystemExit("ERROR: Could not find required directory: %s" %
+- pythondir)
+-elif not os.path.exists(os.path.join(basedir, dirname)):
+- raise SystemExit("ERROR: Could not find required directory: %s" %
+- os.path.join(basedir, dirname))
+-else:
+- pythondir = basedir
+-
+-sys.path.insert(0, pythondir)
+-
+ from gazpacho import main
+
+ try: