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')
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)
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)