You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forinput_pathinargs.nginx_files:
path=os.path.abspath(os.path.expanduser(input_path))
ifnotos.path.exists(path):
LOG.error('File %s was not found', path)
continuewithGixy(config=config) asyoda:
try:
ifpath=='-':
withos.fdopen(sys.stdin.fileno(), 'rb') asfdata:
yoda.audit('<stdin>', fdata, is_stdin=True)
The part where input_path might be a hypen and os.path.abspath("-") will yield $PWD/- rather than a hypen alone. In the conditional below, path can never be -.
Return a normalized absolutized version of the pathname path.
On most platforms, this is equivalent to calling the function normpath() as follows:
normpath(join(os.getcwd(), path)).
For reference, this was on MacOS 10.15.3. Perhaps it is different on other platforms.
The text was updated successfully, but these errors were encountered:
It seems to stem from this section, specifically:
The part where
input_path
might be a hypen andos.path.abspath("-")
will yield$PWD/-
rather than a hypen alone. In the conditional below, path can never be-
.Here's what the Python docs have to say:
For reference, this was on MacOS 10.15.3. Perhaps it is different on other platforms.
The text was updated successfully, but these errors were encountered: