Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Konieczny <jajcus@jajcus.net>2006-08-18 16:14:28 +0400
committerJacek Konieczny <jajcus@jajcus.net>2006-08-18 16:14:28 +0400
commit0fd43375f84740231e449ad166bb2e787a98d7a9 (patch)
tree05ab75ff46a33caac622e73c8ab4a8faf939f938 /configure.py
parent4d7fa399264d3278102c5b953e2335bfcb6493f7 (diff)
- fix error occuring when executing via 'python configure.py'
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index c811eec..d6bf578 100755
--- a/configure.py
+++ b/configure.py
@@ -6,8 +6,10 @@ import os
cfg_python_only = False
-
-os.chdir(os.path.dirname(__file__))
+d = os.path.dirname(__file__)
+if not d:
+ d = "."
+os.chdir(d)
print "Checking for python version...", sys.version.replace("\n", " ")
if sys.hexversion < 0x02030000: