Skip to content
Snippets Groups Projects
Commit 869ed525 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Allow to run tool.py outside of the script's directory

parent da86fd8b
No related merge requests found
...@@ -56,7 +56,8 @@ def view_process(conn, db, view): ...@@ -56,7 +56,8 @@ def view_process(conn, db, view):
if not view_update(conn, view_url, open(view, "r")): if not view_update(conn, view_url, open(view, "r")):
print "... update FAILED!" print "... update FAILED!"
viewpath = "src/main/resources/views" scriptpath = os.path.dirname(os.path.realpath(__file__))
viewpath = scriptpath + "/src/main/resources/views"
(db, conn) = couchconnection.arsnova_connection("/etc/arsnova/arsnova.properties") (db, conn) = couchconnection.arsnova_connection("/etc/arsnova/arsnova.properties")
try: try:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment