From fa50cd03536fe977419c1fa6d143cd1ee2f8ff05 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 8 Feb 2011 20:52:40 +0100 Subject: [PATCH] Server start --- CouchPotato.py | 6 +++--- src/couchpotato/cli.py | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CouchPotato.py b/CouchPotato.py index b4a56b20..1a0c8cc3 100755 --- a/CouchPotato.py +++ b/CouchPotato.py @@ -37,7 +37,7 @@ except ImportError: src_path = os.path.join(os.path.abspath(cwd), 'src') sys.path.insert(0, lib_path) sys.path.insert(0, src_path) - print sys.path + print "Passing execution to couchpotato..." try: from couchpotato import cli @@ -52,5 +52,5 @@ except ImportError: # Running from Titanium raise NotImplementedError("Don't know how to do that.") - -cli.cmd_couchpotato() +if __name__ == "__main__": + cli.cmd_couchpotato() diff --git a/src/couchpotato/cli.py b/src/couchpotato/cli.py index d34cd37d..8a025fc5 100644 --- a/src/couchpotato/cli.py +++ b/src/couchpotato/cli.py @@ -4,9 +4,8 @@ import argparse def cmd_couchpotato(): app = Flask(__name__) - @app.route("/") - def hello(): - return "Hello World!" +# @app.route("/") +# def hello(): +# return "Hello World!" - if __name__ == "__main__": - app.run(debug = True) + app.run(debug = True)