Server start
This commit is contained in:
+3
-3
@@ -37,7 +37,7 @@ except ImportError:
|
|||||||
src_path = os.path.join(os.path.abspath(cwd), 'src')
|
src_path = os.path.join(os.path.abspath(cwd), 'src')
|
||||||
sys.path.insert(0, lib_path)
|
sys.path.insert(0, lib_path)
|
||||||
sys.path.insert(0, src_path)
|
sys.path.insert(0, src_path)
|
||||||
print sys.path
|
|
||||||
print "Passing execution to couchpotato..."
|
print "Passing execution to couchpotato..."
|
||||||
try:
|
try:
|
||||||
from couchpotato import cli
|
from couchpotato import cli
|
||||||
@@ -52,5 +52,5 @@ except ImportError:
|
|||||||
# Running from Titanium
|
# Running from Titanium
|
||||||
raise NotImplementedError("Don't know how to do that.")
|
raise NotImplementedError("Don't know how to do that.")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
cli.cmd_couchpotato()
|
cli.cmd_couchpotato()
|
||||||
|
|||||||
@@ -4,9 +4,8 @@ import argparse
|
|||||||
def cmd_couchpotato():
|
def cmd_couchpotato():
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route("/")
|
# @app.route("/")
|
||||||
def hello():
|
# def hello():
|
||||||
return "Hello World!"
|
# return "Hello World!"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
app.run(debug = True)
|
||||||
app.run(debug = True)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user