diff modules/roundup_cc/display_issues.py @ 12:50f4c64834cb

delegation of dynamic charts works now
author sean
date Tue, 04 Aug 2015 16:00:07 +0200
parents 7a573ec679a6
children
line wrap: on
line diff
--- a/modules/roundup_cc/display_issues.py	Tue Aug 04 14:23:53 2015 +0200
+++ b/modules/roundup_cc/display_issues.py	Tue Aug 04 16:00:07 2015 +0200
@@ -19,12 +19,12 @@
 """
 
 import sqlite3 as db
-import cgitb, os, sys
+import cgitb, os, sys, inspect
 import roundup_cc.roundup_content_data as rcd
 
-PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
+PATH = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
 HTML_DATA = "graph.html"
-PATH_TO_HTML = PATH + "/modules/roundup_cc/" + HTML_DATA
+PATH_TO_HTML = PATH + "/" + HTML_DATA
 
 def make_js_object_string(array):
     formated = []
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)