From 3db5afe04f1f268da4e1fc5fe6039fb5c6ae2bf1 Mon Sep 17 00:00:00 2001
From: madsmpedersen <m@madsp.dk>
Date: Mon, 11 Jul 2016 12:52:48 +0200
Subject: [PATCH] bug fix

---
 wetb/hawc2/htc_file.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wetb/hawc2/htc_file.py b/wetb/hawc2/htc_file.py
index f99064d..2093536 100644
--- a/wetb/hawc2/htc_file.py
+++ b/wetb/hawc2/htc_file.py
@@ -69,7 +69,7 @@ class HTCFile(HTCContents, HTCDefaults):
 
 
     def readfilelines(self, filename):
-        with open(filename.lower(), encoding='cp1252') as fid:
+        with open(filename, encoding='cp1252') as fid:
             lines = list(fid.readlines())
         if lines[0].encode().startswith(b'\xc3\xaf\xc2\xbb\xc2\xbf'):
             lines[0] = lines[0][3:]
@@ -81,7 +81,7 @@ class HTCFile(HTCContents, HTCDefaults):
         lines = self.readfilelines(filename)
         for l in lines:
             if l.lower().lstrip().startswith('continue_in_file'):
-                filename = l.lstrip().split(";")[0][len("continue_in_file"):].strip()
+                filename = l.lstrip().split(";")[0][len("continue_in_file"):].strip().lower()
                 filename = os.path.join(self.modelpath, filename)
 
                 for line in self.readlines(filename):
-- 
GitLab