# Copyright 2018 Hans Dembinski # # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt # or copy at http://www.boost.org/LICENSE_1_0.txt) import subprocess as subp import sys import os args = sys.argv[1:] # modify path for windows [this is a hotfix] t = os.path.join(os.getcwd(), "Debug", args[0] + ".exe") sys.stdout.write("input file: " + t + "\n") if os.path.exists(t): args[0] = t if not os.path.isabs(args[0]): args[0] = os.path.abspath(args[0]) exit_code = subp.call(args) sys.exit(not exit_code)