diff options
Diffstat (limited to 'tools/glusterfind/src/conf.py')
| -rw-r--r-- | tools/glusterfind/src/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/glusterfind/src/conf.py b/tools/glusterfind/src/conf.py index d91746bda13..3849ba5dd1f 100644 --- a/tools/glusterfind/src/conf.py +++ b/tools/glusterfind/src/conf.py @@ -9,9 +9,12 @@ # cases as published by the Free Software Foundation. import os -import ConfigParser +try: + from ConfigParser import ConfigParser +except ImportError: + from configparser import ConfigParser -config = ConfigParser.ConfigParser() +config = ConfigParser() config.read(os.path.join(os.path.dirname(os.path.abspath(__file__)), "tool.conf")) |
