From: Shlomi Fish Date: Mon, 24 Jun 2019 18:30:53 +0000 (+0300) Subject: appveyor fix #4 - python X-Git-Tag: fortune-mod-2.10.0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1857ba8523de46e40b486a639cccbc34890cefa;p=fortune-mod appveyor fix #4 - python --- diff --git a/fortune-mod/tests/fortune-m-test.py b/fortune-mod/tests/fortune-m-test.py index a6a6285..a46acea 100644 --- a/fortune-mod/tests/fortune-m-test.py +++ b/fortune-mod/tests/fortune-m-test.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 +import glob import os import subprocess -inst_dir = os.getcwd() + "/fortune-m-INST_DIR" +from os.path import join +inst_dir = join(os.getcwd(), "fortune-m-INST_DIR") -subprocess.call([inst_dir + "/games/fortune", "-m", "giants"]) +subprocess.check_call([ + glob.glob(join(inst_dir, "games", "fortune")+'*')[0], "-m", "giants"])