Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support/css.py: don't use PWD but TVHDIR, fixes #3332
  • Loading branch information
perexg committed Nov 21, 2015
1 parent cd6dc6d commit f6c54ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions support/css.py
Expand Up @@ -7,7 +7,6 @@

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')
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f6c54ce

Please sign in to comment.