diff options
Diffstat (limited to 'domino_cli.py')
-rwxr-xr-x | domino_cli.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/domino_cli.py b/domino_cli.py index 5cb0b1c..e1bbfbb 100755 --- a/domino_cli.py +++ b/domino_cli.py @@ -13,8 +13,13 @@ import sys, glob, getopt import getopt +import pkg_resources -sys.path.insert(0, glob.glob('./lib')[0]) +try: + dir = pkg_resources.resource_filename('lib','.') +except ImportError: + dir = './lib' +sys.path.insert(0, glob.glob(dir)[0]) from dominoCLI import DominoClientCLI from dominoCLI.ttypes import * |