From f3bf0f6649fd6774e2e2a6abdd7f130f1f677401 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sun, 17 Feb 2013 14:35:04 +0000 Subject: Add a check for python3.0. --- start_mx.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3