diff options
author | Casey Deccio <casey@deccio.net> | 2015-10-14 00:36:27 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2015-10-14 00:36:27 +0300 |
commit | 4bb9b6f3d13f501ff25dba8f5e8cc5b996208305 (patch) | |
tree | 90f5ee91f78fddf6e918c8276789f25163f21261 /bin | |
parent | 6b18b73488607b322c151187eb085b0c804318e5 (diff) |
Add more robustness to command detection
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dnsviz | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -53,6 +53,11 @@ def main(): else: command = sys.argv[1] + # first try importing just the commands module to make sure + # dnsviz is properly reachable with the current path + import dnsviz.commands + + # now try importing the module for the actual command try: mod = importlib.import_module('dnsviz.commands.%s' % command) except ImportError: |