From d567eaeaec7c38898692fc4a58872cbfbee4f0a7 Mon Sep 17 00:00:00 2001 From: dannypete Date: Wed, 14 Oct 2020 13:30:22 -0600 Subject: [PATCH] Fix cannot find config file due to improper checking if passed in path is an absolute path --- smuggler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smuggler.py b/smuggler.py index ddff87a..f34f05b 100755 --- a/smuggler.py +++ b/smuggler.py @@ -130,7 +130,7 @@ def run(self): if not self._get_cookies(): return - if (self._configfile[1] != '/'): + if not os.path.exists(self._configfile): self._configfile = os.path.dirname(os.path.realpath(__file__)) + "/configs/" + self._configfile try: