From a84912017f07091923daff7b2ad9217638738d48 Mon Sep 17 00:00:00 2001 From: anryko Date: Mon, 8 Jul 2019 15:20:21 +0200 Subject: [PATCH] Add support for both script and module local import (#45) --- runlike/runlike.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runlike/runlike.py b/runlike/runlike.py index 37e0b3f..16d409b 100755 --- a/runlike/runlike.py +++ b/runlike/runlike.py @@ -1,8 +1,11 @@ #!/usr/bin/env python import click -from inspector import Inspector +try: + from .inspector import Inspector +except ValueError: + from inspector import Inspector @click.command(