Skip to content

Instantly share code, notes, and snippets.

@Bambofy
Created April 24, 2016 13:10
Show Gist options
  • Save Bambofy/45d4e71547df798c357c1894554ad69a to your computer and use it in GitHub Desktop.
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".
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