From 7865cf40c1b1011a92fe04858c381fe4508963b1 Mon Sep 17 00:00:00 2001 From: chrono Date: Tue, 10 Dec 2013 09:52:27 +0000 Subject: [PATCH] Prevent python bytecode creation for config + overwrite modal in index.html --- picoreflowd.py | 4 +++- public/index.html | 23 ++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/picoreflowd.py b/picoreflowd.py index 0eb8198..0a3bc59 100755 --- a/picoreflowd.py +++ b/picoreflowd.py @@ -10,7 +10,9 @@ from gevent.pywsgi import WSGIServer from geventwebsocket import WebSocketHandler, WebSocketError try: + sys.dont_write_bytecode = True import config + sys.dont_write_bytecode = False except: print "Could not import config file." print "Copy config.py.EXAMPLE to config.py and adapt it for your setup." @@ -21,7 +23,7 @@ log = logging.getLogger("picoreflowd") log.info("Starting picoreflowd") script_dir = os.path.dirname(os.path.realpath(__file__)) -sys.path.insert(0, script_dir + '/lib') +sys.path.insert(0, script_dir + '/lib/') profile_path = os.path.join(script_dir, "storage", "profiles") from oven import Oven, Profile diff --git a/public/index.html b/public/index.html index 146ad7b..12fe053 100644 --- a/public/index.html +++ b/public/index.html @@ -124,7 +124,7 @@ + + +