From c5fc5222f86969ccf9e8f5c150cf4792cd92b9d8 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 5 May 2019 13:01:32 -0400 Subject: [PATCH] Update setup for accuracy --- setup.py | 2 +- sopel_modules/SpiceBot_Update/Update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a8fa73e..a65f758 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ if not os.path.exists(stockdir) or not os.path.isdir(stockdir): os.system("sudo mkdir " + stockdir) for pathname in os.listdir(modules_dir): path = os.path.join(modules_dir, pathname) - if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')): + if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')): os.system("sudo mv " + path + " " + stockdir) diff --git a/sopel_modules/SpiceBot_Update/Update.py b/sopel_modules/SpiceBot_Update/Update.py index a6f3998..6ff7272 100644 --- a/sopel_modules/SpiceBot_Update/Update.py +++ b/sopel_modules/SpiceBot_Update/Update.py @@ -91,5 +91,5 @@ def stock_modules_begone(bot): os.system("sudo mkdir " + stockdir) for pathname in os.listdir(modules_dir): path = os.path.join(modules_dir, pathname) - if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')): + if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')): os.system("sudo mv " + path + " " + stockdir)