Put in the badly needed patch for pyicqt-0.7a/PyICQt.py

This commit is contained in:
Eric Schnoebelen 2006-05-06 16:21:44 +00:00 committed by Thomas Klausner
parent f6ae72b415
commit 897870276e

View file

@ -0,0 +1,15 @@
$NetBSD: patch-ac,v 1.1 2006/05/06 16:21:44 schnoebe Exp $
--- PyICQt.py.orig 2006-03-06 13:12:26.000000000 -0600
+++ PyICQt.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python
-# Make 'cwd'/src in the PYTHONPATH
+# Make {transport directory}/src in the PYTHONPATH
import sys, os, os.path
-PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
+PATH = os.path.join("@PREFIX@", "@TRANSPORTDIR@")
os.chdir(PATH)
PATH = os.path.join(PATH, "src")
sys.path[0] = PATH