diff options
author | Haru <haru@dotalux.com> | 2019-09-23 00:43:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 00:43:14 +0200 |
commit | ab1127c269daa390f1648f6e8615fe8c209d879e (patch) | |
tree | 0533a577d20b4b59d04907729e3dc22468b4dd32 /tools/utils/common.py | |
parent | 12b28c17795d795e8a091f083560d4fa9dea3b1e (diff) | |
parent | 548aa1263b69c2c5551d2c5f3d501ebc82d1e067 (diff) | |
download | hercules-ab1127c269daa390f1648f6e8615fe8c209d879e.tar.gz hercules-ab1127c269daa390f1648f6e8615fe8c209d879e.tar.bz2 hercules-ab1127c269daa390f1648f6e8615fe8c209d879e.tar.xz hercules-ab1127c269daa390f1648f6e8615fe8c209d879e.zip |
Merge pull request #2529 from Asheraf/itemcombolibconf
Convert item combo db to use libconfig
Diffstat (limited to 'tools/utils/common.py')
-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): |