Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
css.py: fix PWD usage
  • Loading branch information
perexg committed May 24, 2015
1 parent e7b5e7f commit 247dd3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions support/css.py
Expand Up @@ -7,6 +7,7 @@

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

0 comments on commit 247dd3a

Please sign in to comment.