fix possible import de client.py
This commit is contained in:
parent
f826e0ebc6
commit
e1eaad381d
1 changed files with 4 additions and 2 deletions
|
@ -33,12 +33,14 @@ 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:
|
||||
sys.stderr.write(u"Va lire le fichier README.\n".encode("utf-8"))
|
||||
sys.exit(1)
|
||||
sys.exit(1)
|
||||
else:
|
||||
# On a spécifié à la main le dossier de conf
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue