Commit 9e1d29d6 authored by Lorenz Steinert's avatar Lorenz Steinert

impoted sys and some style changes

parent 35c8bb24
......@@ -8,6 +8,7 @@ Created on Fri Nov 24 15:35:04 2017
import re
import os
import sys
import shutil
import codecs
import argparse
......@@ -38,12 +39,13 @@ def gen_head(share_dir, reg, sprecher, protokollant, date):
'r', 'utf-8') as fobj_name:
f_name = fobj_name.read()
else:
print(os.path.abspath(os.path.join(share_dir, 'name.tex')
+ " not found. Ignoring"))
print(os.path.abspath(os.path.join(share_dir, 'name.tex'))
+ " not found. Ignoring")
f_name = ""
if (os.path.isfile(os.path.join(share_dir, 'acroname.tex'))
and os.path.isfile(os.path.join(share_dir, 'acro.tex'))):
and os.path.isfile(os.path.join(share_dir, 'acro.tex'))):
with codecs.open(os.path.join(share_dir, 'acroname.tex'),
'r', 'utf-8') as fobj_acroname:
f_acroname = fobj_acroname.read()
......@@ -52,10 +54,10 @@ def gen_head(share_dir, reg, sprecher, protokollant, date):
'r', 'utf-8') as fobj_acro:
f_acro = fobj_acro.read()
else:
print(os.path.abspath(os.path.join(share_dir, 'acroname.tex')
print(os.path.abspath(os.path.join(share_dir, 'acroname.tex'))
+ " or "
+ os.path.abspath(os.path.join(share_dir, 'acro.tex'))
+ " not found. Ignoring"))
+ " not found. Ignoring")
f_acroname = ""
f_acro = ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment