def _get_hc_dirs():
try:
read_conf = open(str(os.path.expanduser('~'))+'/automal_conf.conf', 'r').readlines()
except IOError:
sys.exit("-- : -- Unable to access conf. file. Run and re-enter new conf. file paths.")
for line in read_conf:
if line.startswith('ipath'):
input_path = str(line.split('=')[1]).strip()
if line.startswith('opath'):
output_path = str(line.split('=')[1]).strip()
return(input_path, output_path)
评论列表
文章目录