run_wml_tests: Don't append to the provided path if it's not a directory

This allows passing an explicit path on Mac (instead of using the automatic -p xcode option), since the binary is not named "wesnoth" on that platform.
This commit is contained in:
Celtic Minstrel 2021-04-03 23:10:47 -04:00
parent 77f8112032
commit 099414ed1e

View file

@ -127,6 +127,7 @@ class WesnothRunner:
path = os.path.split(os.path.realpath(sys.argv[0]))[0]
else:
path = options.path
if os.path.isdir(path):
path += "/wesnoth"
if options.debug_bin:
path += "-debug"