fix find_flagfile path handling bug

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yoshihiro Kaneko 2012-04-11 13:45:09 +09:00 committed by FUJITA Tomonori
parent 96c91e59d6
commit 1ce1db030c

View File

@ -47,7 +47,7 @@ def find_flagfile(default_path=RYU_DEFAULT_FLAG_FILE):
script_dir = os.path.dirname(inspect.stack()[-1][1])
for filename in default_path:
if not os.path.abspath(filename):
if not os.path.isabs(filename):
if os.path.exists(filename):
# try relative to current path
filename = os.path.abspath(filename)