Skip to content
Snippets Groups Projects
Commit 4322e579 authored by Franck Dary's avatar Franck Dary
Browse files

getRawText.py do not overwrite txt files

parent 92215d5d
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@ if __name__ == "__main__" :
splited = os.path.splitext(pathToFile)
target = splited[0] + ".txt"
if os.path.isfile(target) :
continue
targetFile = open(target, "w")
command = sys.argv[1] + " " + pathToFile
p = subprocess.Popen(command, stdout=targetFile, stderr=sys.stderr, shell=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment