Replies: 1 comment
-
You're right. This is because the Node version of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have a problem and can't solve it without hacks.
The following code uses two different approaches. One uses
glob
function ofDir
and works as I expect and the second uses globalGlob
which internally callsDir.glob
but works differently.The output is following:
If I change the second example to prepend actual directory to exclude string it works.
for f in env.Glob(_dir + "*.cpp", exclude=_dir + "*.gen.cpp"):
So the problem is that I already receive string
src/*.cpp
and I need to create hacky invalidDir
env.Dir("src/*.cpp").path_elements[-2].path
to getsrc
string or to useos.path.dirname("src/*.cpp")
which is more beautiful but still is a workaround.Is there a way to force
env.Glob
work like it was called from actualenv.glob
or do you have any other ideas how to perform it without hacks or mabual filtering of returned list? (I can't change format in which I receive string)Beta Was this translation helpful? Give feedback.
All reactions