Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build in symlinked/mounted dirs
  • Loading branch information
RustyDust authored and perexg committed May 16, 2015
1 parent cef2062 commit 61309d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/css.py
Expand Up @@ -41,7 +41,7 @@ def url(fn):
fn = os.path.normpath(fn)
if VERBOSE:
info('css: %s', fn)
if not fn.startswith(TVHDIR):
if not os.path.realpath(fn).startswith(TVHDIR):
error('Wrong filename "%s"', fn)
bd = os.path.dirname(fn)
while 1:
Expand Down Expand Up @@ -81,7 +81,7 @@ def utf_check(fn):
fn = os.path.normpath(fn)
if VERBOSE:
info('utf-check: %s', fn)
if not fn.startswith(TVHDIR):
if not os.path.realpath(fn).startswith(TVHDIR):
error('Wrong filename "%s"', fn)
while 1:
l = f.readline()
Expand Down

0 comments on commit 61309d2

Please sign in to comment.