Permalink
Browse files

ensure the source dir are the realpath, or further relpath() will bro…

…ke. thanks jujule for the test ^^
  • Loading branch information...
1 parent 60481dc commit 1c067f269345a7e05e99c0b6e3b93cb3c05d86f2 @tito tito committed Aug 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/build.py
View
@@ -162,6 +162,7 @@ def select(fn):
# get the files and relpath file of all the directory we asked for
files = []
for sd in source_dirs:
+ sd = realpath(sd)
compile_dir(sd)
files += [(x, relpath(realpath(x), sd)) for x in listfiles(sd) if select(x)]

0 comments on commit 1c067f2

Please sign in to comment.