From: Jaroslav Kysela Date: Sun, 24 May 2015 18:52:08 +0000 (+0200) Subject: css.py: fix PWD usage X-Git-Tag: v4.2.1~2481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247dd3a09f0f7c84df858e27e71f0706d50ccbe5;p=thirdparty%2Ftvheadend.git css.py: fix PWD usage --- diff --git a/support/css.py b/support/css.py index 3d0558f56..2f30cf4cb 100755 --- a/support/css.py +++ b/support/css.py @@ -7,6 +7,7 @@ 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') @@ -37,7 +38,7 @@ def url(fn): f = utf8open(fn, 'r') if fn[0] != '/': - fn = os.path.join(os.environ['PWD'], fn) + fn = os.path.join(PWD, fn) fn = os.path.normpath(fn) if VERBOSE: info('css: %s', fn) @@ -77,7 +78,7 @@ def url(fn): def utf_check(fn): f = utf8open(fn, 'r') if fn[0] != '/': - fn = os.path.join(os.environ['PWD'], fn) + fn = os.path.join(PWD, fn) fn = os.path.normpath(fn) if VERBOSE: info('utf-check: %s', fn)