comparison 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
comparison
equal deleted inserted replaced
296:c074783d0847 297:a09ac4650e0d
56 # Main loop 56 # Main loop
57 runner = GameRunner(resource_loader, game, background, replay=replay) 57 runner = GameRunner(resource_loader, game, background, replay=replay)
58 runner.start() 58 runner.start()
59 59
60 60
61 default_data = ('CM.DAT:th06*_CM.DAT:*CM.DAT:*cm.dat', 61 pathsep = os.path.pathsep
62 'ST.DAT:th6*ST.DAT:*ST.DAT:*st.dat', 62 default_data = (pathsep.join(('CM.DAT', 'th06*_CM.DAT', '*CM.DAT', '*cm.dat')),
63 '102h.exe:102*.exe:東方紅魔郷.exe:*.exe') 63 pathsep.join(('ST.DAT', 'th6*ST.DAT', '*ST.DAT', '*st.dat')),
64 pathsep.join(('102h.exe', '102*.exe', '東方紅魔郷.exe', '*.exe')))
64 65
65 66
66 parser = argparse.ArgumentParser(description='Libre reimplementation of the Touhou 6 engine.') 67 parser = argparse.ArgumentParser(description='Libre reimplementation of the Touhou 6 engine.')
67 68
68 parser.add_argument('data', metavar='DAT', default=default_data, nargs='*', help='Game’s data files') 69 parser.add_argument('data', metavar='DAT', default=default_data, nargs='*', help='Game’s data files')