diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-09-12 13:13:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-09-12 13:13:23 -0300 |
commit | 1443f47ca63972f737bd9cc0322f77dc416ff2a0 (patch) | |
tree | 6b851ced5b878ac8b2b13eeb01e04d598bacfe43 /tools/utils/common.py | |
parent | c53f8a099151f2e8c26c0ab36f35d34256c0d6cb (diff) | |
download | hercules-1443f47ca63972f737bd9cc0322f77dc416ff2a0.tar.gz hercules-1443f47ca63972f737bd9cc0322f77dc416ff2a0.tar.bz2 hercules-1443f47ca63972f737bd9cc0322f77dc416ff2a0.tar.xz hercules-1443f47ca63972f737bd9cc0322f77dc416ff2a0.zip |
This is Hercules v2019.09.22
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): |