fix find_flagfile path handling bug
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
96c91e59d6
commit
1ce1db030c
@ -47,7 +47,7 @@ def find_flagfile(default_path=RYU_DEFAULT_FLAG_FILE):
|
|||||||
script_dir = os.path.dirname(inspect.stack()[-1][1])
|
script_dir = os.path.dirname(inspect.stack()[-1][1])
|
||||||
|
|
||||||
for filename in default_path:
|
for filename in default_path:
|
||||||
if not os.path.abspath(filename):
|
if not os.path.isabs(filename):
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
# try relative to current path
|
# try relative to current path
|
||||||
filename = os.path.abspath(filename)
|
filename = os.path.abspath(filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user