Server start

This commit is contained in:
Ruud
2011-02-08 20:52:40 +01:00
parent c8ba3ceb72
commit fa50cd0353
2 changed files with 7 additions and 8 deletions

View File

@@ -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()

View File

@@ -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)