diff options
author | Asheraf <acheraf1998@gmail.com> | 2019-08-30 23:31:35 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2019-08-31 13:32:15 +0100 |
commit | e66f69797332dcaa0ca948287f4f58aad48f66f9 (patch) | |
tree | dc21d9029ce21328d4e70c74395db5d3f74da2eb /tools/utils | |
parent | 307248a5eefca196660c75e06cb6d4d0b84e2c43 (diff) | |
download | hercules-e66f69797332dcaa0ca948287f4f58aad48f66f9.tar.gz hercules-e66f69797332dcaa0ca948287f4f58aad48f66f9.tar.bz2 hercules-e66f69797332dcaa0ca948287f4f58aad48f66f9.tar.xz hercules-e66f69797332dcaa0ca948287f4f58aad48f66f9.zip |
Convert item combo db to use libconfig
Diffstat (limited to 'tools/utils')
-rw-r--r-- | tools/utils/common.py | 6 |
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): |