From: Jaroslav Kysela Date: Sat, 21 Nov 2015 20:02:26 +0000 (+0100) Subject: support/css.py: don't use PWD but TVHDIR, fixes #3332 X-Git-Tag: v4.0.8~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0233dafe449c8f7b32d72083b797324b7abdf708;p=thirdparty%2Ftvheadend.git support/css.py: don't use PWD but TVHDIR, fixes #3332 --- diff --git a/support/css.py b/support/css.py index 2f30cf4cb..32eaefcec 100755 --- a/support/css.py +++ b/support/css.py @@ -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') @@ -38,7 +37,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) @@ -78,7 +77,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)