summaryrefslogtreecommitdiff
path: root/tools/utils/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/utils/common.py')
-rw-r--r--tools/utils/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/utils/common.py b/tools/utils/common.py
index acceb9b30..06695751a 100644
--- a/tools/utils/common.py
+++ b/tools/utils/common.py
@@ -21,7 +21,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import io
-import libconf as libconf
+import sys
+if sys.version_info >= (3, 0):
+ from utils import libconf as libconf
+else:
+ import libconf as libconf
import os.path
def LoadDBConsts(DBname, mode, serverpath):