From c0a065bcb7ba1b038b2427271ddd89796b0aede6 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 8 May 2019 12:47:47 -0400 Subject: [PATCH] ignore dummy command file --- sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py b/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py index acd3063..8c662a0 100644 --- a/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py +++ b/sopel_modules/SpiceBot_CommandsQuery/CommandsQuery.py @@ -57,7 +57,8 @@ def setup(bot): for pathname in os.listdir(directory): path = os.path.join(directory, pathname) if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')): - filepathlist.append(str(path)) + if pathname not in ["SpiceBot_dummycommand.py"]: + filepathlist.append(str(path)) # CoreTasks ct_path = os.path.join(main_dir, 'coretasks.py')