From 74b19ac094647b7e4daef075c2f4934ef05879f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 24 May 2017 10:12:12 +0200 Subject: [PATCH] Bugfix: PyLoT could not cope with input file if not called pylot.in. --- pylot/core/io/inputs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/io/inputs.py b/pylot/core/io/inputs.py index 8fa1e262..f70b8caf 100644 --- a/pylot/core/io/inputs.py +++ b/pylot/core/io/inputs.py @@ -178,6 +178,9 @@ class AutoPickParameter(object): else: return + if isinstance(fnin, (list, tuple)): + fnin = fnin[0] + inputFile = open(fnin, 'r') try: lines = inputFile.readlines()