From e1857ba8523de46e40b486a639cccbc34890cefa Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 24 Jun 2019 21:30:53 +0300 Subject: [PATCH] appveyor fix #4 - python --- fortune-mod/tests/fortune-m-test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"]) -- 2.40.0