Commit 93dc8b51 authored by Stefan H. Holek's avatar Stefan H. Holek

Move interpreter check to where it also catches auto-detected interpreters.

parent 21f3a830
......@@ -60,9 +60,6 @@ def main():
skelsrc = os.path.abspath(os.path.expanduser(arg))
if opt in ("-p", "--python"):
python = os.path.abspath(os.path.expanduser(arg))
if not os.path.exists(python) and os.path.isfile(python):
usage(sys.stderr, "The Python interpreter does not exist.")
sys.exit(2)
if opt in ("-h", "--help"):
usage(sys.stdout)
sys.exit()
......@@ -72,6 +69,10 @@ def main():
sys.exit(2)
user, password = arg.split(":", 1)
if python is not None and not os.path.isfile(python):
usage(sys.stderr, "The Python interpreter does not exist.")
sys.exit(2)
if not skeltarget:
# interactively ask for skeltarget and initial user name/passwd.
# cant set custom instancehome in interactive mode, we default
......
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