aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/subzero/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/subzero/util.py')
-rw-r--r--libs/subzero/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/subzero/util.py b/libs/subzero/util.py
index 25ab0cd60..61f6e9299 100644
--- a/libs/subzero/util.py
+++ b/libs/subzero/util.py
@@ -1,7 +1,9 @@
# coding=utf-8
+from __future__ import absolute_import
import os
from subzero.lib.io import get_viable_encoding
+import six
def get_root_path():
- return os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(unicode(__file__, get_viable_encoding()))), ".."))
+ return os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(six.text_type(__file__, get_viable_encoding()))), ".."))