Commit e1eaad38 authored by Daniel Stan's avatar Daniel Stan

fix possible import de client.py

parent f826e0eb
......@@ -33,7 +33,9 @@ try:
sys.path.append(os.path.expanduser("~/.config/%s/" % (bootstrap_cmd_name,)))
import clientconfig as config
except ImportError:
ducktape_display_error = sys.stderr.isatty() and not any([opt in sys.argv for opt in ["-q", "--quiet"]])
ducktape_display_error = sys.stderr.isatty() and \
not any([opt in sys.argv for opt in ["-q", "--quiet"]]) and \
__name__ == '__main__'
envspecified = os.getenv(envvar, None)
if envspecified is None:
if ducktape_display_error:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment