Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getScriptDir() / "foo.nimja" does not work when cross compiling from linux to windows #96

Open
enthus1ast opened this issue Mar 16, 2023 · 1 comment

Comments

@enthus1ast
Copy link
Owner

enthus1ast commented Mar 16, 2023

import nimja
tmplf(getScriptDir() / "foo.nimja")

# cannot open:
#\root\bug\src\modules2\foo.nimja

nim-lang/Nim#21534

@enthus1ast
Copy link
Owner Author

enthus1ast commented Mar 16, 2023

one ugly work around in such cases could be a:

tmplf((getScriptDir() / "foo.nimja").replace("\\", "/")))

or do not use os./ but build the path by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant