summaryrefslogtreecommitdiff
path: root/net/jabber-pyicq/files/patch-src_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/jabber-pyicq/files/patch-src_main.py')
-rw-r--r--net/jabber-pyicq/files/patch-src_main.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/jabber-pyicq/files/patch-src_main.py b/net/jabber-pyicq/files/patch-src_main.py
new file mode 100644
index 000000000000..29195250e9d2
--- /dev/null
+++ b/net/jabber-pyicq/files/patch-src_main.py
@@ -0,0 +1,24 @@
+--- src/main.py.orig Tue Jun 7 09:54:58 2005
++++ src/main.py Tue Jun 7 09:56:26 2005
+@@ -1,3 +1,4 @@
++#!%%PYTHON_CMD%%
+ # Copyright 2004 James Bunton <james@delx.cjb.net>
+ # Licensed for distribution under the GPL version 2, check COPYING for details
+
+@@ -13,15 +14,9 @@
+ print("You are using version %s of Python, at least 2.3 is required." % (sys.version[:3]))
+ os._exit(0)
+
+-name = "PyICQt"
+-exe = os.path.realpath(sys.executable)
+-if (exe.find("python") >= 0):
+- print("Restarting with process name %s..." % (name))
+- os.execv(exe, [name, sys.argv[0]]+sys.argv[1:])
+-
+ import config
+ import xmlconfig
+-conffile = "config.xml"
++conffile = "%%PREFIX%%/etc/jabber-pyicq.xml"
+ options = {}
+ opts, args = getopt.getopt(sys.argv[1:], "c:o:dDl:h", ["config=", "option=", "debug", "Debug", "log=", "help"])
+ for o, v in opts: