Skip to content

Commit 1c067f2

Browse files
committed
ensure the source dir are the realpath, or further relpath() will broke. thanks jujule for the test ^^
1 parent 60481dc commit 1c067f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def select(fn):
162162
# get the files and relpath file of all the directory we asked for
163163
files = []
164164
for sd in source_dirs:
165+
sd = realpath(sd)
165166
compile_dir(sd)
166167
files += [(x, relpath(realpath(x), sd)) for x in listfiles(sd) if select(x)]
167168

0 commit comments

Comments
 (0)