]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
support/css.py: don't use PWD but TVHDIR, fixes #3332
authorJaroslav Kysela <perex@perex.cz>
Sat, 21 Nov 2015 20:02:26 +0000 (21:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 21 Nov 2015 20:02:26 +0000 (21:02 +0100)
support/css.py

index d511c78908ee2c6cae87415eaa8cec380e06a8f5..a7f5b1b86c45354b162697812585fb77d9178ecf 100755 (executable)
@@ -7,7 +7,6 @@ import sys, os
 
 VERBOSE = 'V' in os.environ and len(os.environ['V']) > 0
 TVHDIR = os.path.realpath('.')
-PWD = os.path.realpath(os.environ['PWD'])
 
 def info(fmt, *msg):
   sys.stderr.write(" [INFO ] " + (fmt % msg) + '\n')
@@ -34,7 +33,7 @@ def url(fn):
 
   f = utf8open(fn, 'r')
   if fn[0] != '/':
-    fn = os.path.join(PWD, fn)
+    fn = os.path.join(TVHDIR, fn)
   fn = os.path.normpath(fn)
   if VERBOSE:
     info('css: %s', fn)
@@ -74,7 +73,7 @@ def url(fn):
 def utf_check(fn):
   f = utf8open(fn, 'r')
   if fn[0] != '/':
-    fn = os.path.join(PWD, fn)
+    fn = os.path.join(TVHDIR, fn)
   fn = os.path.normpath(fn)
   if VERBOSE:
     info('utf-check: %s', fn)