[odrs-web] Hardcode less in the wsgi file



commit e17082bcb7ac8ec134b58f781d9f98b0905b4577
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 26 11:45:18 2016 +0100

    Hardcode less in the wsgi file

 odrs.wsgi |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/odrs.wsgi b/odrs.wsgi
index 662f325..1acffcc 100644
--- a/odrs.wsgi
+++ b/odrs.wsgi
@@ -1,3 +1,10 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2016 Richard Hughes <richard hughsie com>
+# Licensed under the GNU General Public License Version 3
+
 import sys
-sys.path.insert(0,'/srv/http/odrs.gnome.org/html')
+import os
+sys.path.insert(0, os.path.join(os.environ['HOME'], 'html'))
 from flaskapp import app as application


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]