Dependencies update
This commit is contained in:
+11
-10
@@ -16,35 +16,36 @@ except ImportError:
|
|||||||
cwd = dirname(__file__)
|
cwd = dirname(__file__)
|
||||||
print "Updating libraries..."
|
print "Updating libraries..."
|
||||||
stdout, stderr = subprocess.Popen(["git", "submodule", "init"],
|
stdout, stderr = subprocess.Popen(["git", "submodule", "init"],
|
||||||
stderr=subprocess.PIPE,
|
stderr = subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE).communicate()
|
stdout = subprocess.PIPE).communicate()
|
||||||
if stderr:
|
if stderr:
|
||||||
print "[WARNING] Git is complaining:"
|
print "[WARNING] Git is complaining:"
|
||||||
print "="*78
|
print "=" * 78
|
||||||
print stderr
|
print stderr
|
||||||
print "="*78
|
print "=" * 78
|
||||||
stdout, stderr = subprocess.Popen(["git", "submodule", "update"],
|
stdout, stderr = subprocess.Popen(["git", "submodule", "update"],
|
||||||
stderr=subprocess.PIPE,
|
stderr = subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE).communicate()
|
stdout = subprocess.PIPE).communicate()
|
||||||
if stderr:
|
if stderr:
|
||||||
print "[WARNING] Git is complaining:"
|
print "[WARNING] Git is complaining:"
|
||||||
print "="*78
|
print "=" * 78
|
||||||
print stderr
|
print stderr
|
||||||
print "="*78
|
print "=" * 78
|
||||||
print "Registering libraries..."
|
print "Registering libraries..."
|
||||||
# Insert local directories into path
|
# Insert local directories into path
|
||||||
lib_path = os.path.join(os.path.abspath(cwd), 'libs')
|
lib_path = os.path.join(os.path.abspath(cwd), 'libs')
|
||||||
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
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "[ERROR]: Something's seriously wrong."
|
print "[ERROR]: Something's seriously wrong."
|
||||||
print "="*78
|
print "=" * 78
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
print "="*78
|
print "=" * 78
|
||||||
print "Aborting..."
|
print "Aborting..."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
+1
-1
Submodule libs updated: e0c6438374...7c5fa9a730
@@ -1,5 +1,12 @@
|
|||||||
|
from flask import Flask
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
def cmd_couchpotato():
|
def cmd_couchpotato():
|
||||||
print "Couchpotato."
|
app = Flask(__name__)
|
||||||
pass
|
|
||||||
|
@app.route("/")
|
||||||
|
def hello():
|
||||||
|
return "Hello World!"
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run(debug = True)
|
||||||
|
|||||||
Reference in New Issue
Block a user