From 4fc9fa6c3f609c021422fd9309b2f10679e0df22 Mon Sep 17 00:00:00 2001
From: AK <kutkin@gmail.com>
Date: Wed, 11 Aug 2021 12:02:32 +0000
Subject: [PATCH] fixed trailing slash issue

---
 imcal.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/imcal.py b/imcal.py
index 93618fb..1972bef 100755
--- a/imcal.py
+++ b/imcal.py
@@ -308,6 +308,7 @@ def model_apply_threshold(model, threshold=0.0, out=None):
 
 
 def main(msin, outbase=None, cfgfile='imcal.yml'):
+    msin = msin.rstrip('/')
     logging.info('Processing {}'.format(msin))
     logging.info('The config file: {}'.format(cfgfile))
     with open(cfgfile) as f:
-- 
GitLab