Use os.environ.get() in stead of os.getenv() (which is platform-dependent).
This commit is contained in:
parent
aeb6a60e03
commit
f03c692357
|
@ -117,7 +117,7 @@ def gnu_getopt(args, shortopts, longopts = []):
|
||||||
if shortopts.startswith('+'):
|
if shortopts.startswith('+'):
|
||||||
shortopts = shortopts[1:]
|
shortopts = shortopts[1:]
|
||||||
all_options_first = True
|
all_options_first = True
|
||||||
elif os.getenv("POSIXLY_CORRECT"):
|
elif os.environ.get("POSIXLY_CORRECT"):
|
||||||
all_options_first = True
|
all_options_first = True
|
||||||
else:
|
else:
|
||||||
all_options_first = False
|
all_options_first = False
|
||||||
|
|
Loading…
Reference in New Issue