Code cleanup.
This commit is contained in:
parent
ec4390838a
commit
d8e0b829a7
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue