]> granicus.if.org Git - fortune-mod/commitdiff
appveyor fix #4 - python
authorShlomi Fish <shlomif@shlomifish.org>
Mon, 24 Jun 2019 18:30:53 +0000 (21:30 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Mon, 24 Jun 2019 18:30:53 +0000 (21:30 +0300)
fortune-mod/tests/fortune-m-test.py

index a6a628526fff19e0ebab0aa389ea0de5a718be9e..a46acea0cf36f77ed52dd13c6a2df4339fd85bde 100644 (file)
@@ -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"])