Mercurial > touhou
diff eosd @ 297:a09ac4650e0d
Fix relative path handling and os-specific path separators.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 06 Mar 2012 17:45:14 +0100 |
parents | 0aab9b34299e |
children | da53bc29b94a |
line wrap: on
line diff
--- a/eosd +++ b/eosd @@ -58,9 +58,10 @@ def main(path, stage_num, rank, characte runner.start() -default_data = ('CM.DAT:th06*_CM.DAT:*CM.DAT:*cm.dat', - 'ST.DAT:th6*ST.DAT:*ST.DAT:*st.dat', - '102h.exe:102*.exe:東方紅魔郷.exe:*.exe') +pathsep = os.path.pathsep +default_data = (pathsep.join(('CM.DAT', 'th06*_CM.DAT', '*CM.DAT', '*cm.dat')), + pathsep.join(('ST.DAT', 'th6*ST.DAT', '*ST.DAT', '*st.dat')), + pathsep.join(('102h.exe', '102*.exe', '東方紅魔郷.exe', '*.exe'))) parser = argparse.ArgumentParser(description='Libre reimplementation of the Touhou 6 engine.')