Created
April 24, 2016 13:10
-
-
Save Bambofy/45d4e71547df798c357c1894554ad69a to your computer and use it in GitHub Desktop.
This was one of two scripts produced for a piece of coursework at the University of Hull for the 08227 ACW 2016. Placed in the same directory as the Navigation.exe. EXAMPLE USE "python this_script.py smalldataset".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import re | |
import subprocess | |
exeCallCount = 100 | |
dataSetPartialName = sys.argv[1] ## only import data from files with s in the name. | |
cwd = os.path.dirname(os.path.abspath(__file__)) ## current working directory | |
i = 0 | |
while i < exeCallCount: | |
print(subprocess.check_call([cwd + "/Navigation.exe", dataSetPartialName, str(i)])) | |
i += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment