summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-02-17 14:35:04 +0000
committerIsis Lovecruft <isis@torproject.org>2013-02-17 14:35:04 +0000
commitf3bf0f6649fd6774e2e2a6abdd7f130f1f677401 (patch)
treeb4870d0628de4a415e0756830c64bff7cb0e8f15
parentc9aa79c427c215ebc3abf2b9b9260739aef68b50 (diff)
Add a check for python3.0.
-rwxr-xr-xstart_mx.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/start_mx.py b/start_mx.py
index 37ac5c0..7b8fc8a 100755
--- a/start_mx.py
+++ b/start_mx.py
@@ -34,6 +34,13 @@ def __get_dirs__():
ours = ospath.join(leap, application_name.replace('_', '/'))
return repo, leap, ours
+## py3k check, snagged from python-gnupg-0.3.2 by Vinay Sajip
+try:
+ unicode
+ _py3k = False
+except NameError:
+ _py3k = True
+
## Set the $PYTHONPATH:
repo, leap, ours = __get_dirs__()
sys.path[:] = map(ospath.abspath, sys.path)