diff --git a/sp_replace_typ.py b/sp_replace_typ.py index 17c41d9..44173a9 100755 --- a/sp_replace_typ.py +++ b/sp_replace_typ.py @@ -14,6 +14,7 @@ def get_famid_name_from_imgfile(imgfile_path): if os.path.isfile(imgfile_path) == False: sys.exit("Datei nicht gefunden. Bitte geben Sie eine gültige .img-Datei an.") + # This doesn't work on Windows. So we stick to Popen. # output = subprocess.run( # [f'{GMT} -i "{imgfile_path}"'], shell=True, capture_output=True, text=True).stdout @@ -22,7 +23,6 @@ def get_famid_name_from_imgfile(imgfile_path): output, _ = session.communicate() pattern = b".* FID (\d+), (.*)" - #pattern = ".* FID (\d+), (.*)" match = re.search(pattern, output) if not match: sys.exit(