From 4322e5795db3bb1c86c8d6ee7189e42c5cf59eba Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Thu, 16 Apr 2020 17:14:36 +0200
Subject: [PATCH] getRawText.py do not overwrite txt files

---
 UD_any/data/getRawText.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/UD_any/data/getRawText.py b/UD_any/data/getRawText.py
index 2cb01e1..74b78cd 100755
--- a/UD_any/data/getRawText.py
+++ b/UD_any/data/getRawText.py
@@ -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)
-- 
GitLab