From a9a06f2d72f63b4dd1adb6be6c344467ec5e23a2 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 10 Apr 2011 02:23:19 -0400 Subject: [PATCH] moving secure_config to a default location, also adding a check to see if it's been filled out in main.py --- config/{secure_config.py => secure_config.py.default} | 0 main.py | 7 +++++++ 2 files changed, 7 insertions(+) rename config/{secure_config.py => secure_config.py.default} (100%) diff --git a/config/secure_config.py b/config/secure_config.py.default similarity index 100% rename from config/secure_config.py rename to config/secure_config.py.default diff --git a/main.py b/main.py index f9605c4..74ee1bb 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,13 @@ from subprocess import * +try: + from config.secure_config import * +except ImportError: + print "Can't find a secure_config file!" + print "Make sure you have configured the bot by moving 'config/secure_config.py.default' to 'config/secure_config.py' and by filling out the information inside." + exit() + while 1: cmd = ['python', 'bot.py'] call(cmd) \ No newline at end of file