-
Notifications
You must be signed in to change notification settings - Fork 21
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
Escaping problem #16
Comments
Call a |
@megawac Wow, faster than "speed of light"! 👍 My python knowledge is really restricted. To fix this issue by myself, I have to dive a bit deeper into the matter. ;) |
Hehe, good catch try adding that line to https://github.com/ganemone/NodeRequirer/blob/master/Require.py#L128 and testing if that fixes it for you and send a pr. I can't test it at the moment |
(Testing on osx) Right now the code replaces Tangentially, I think the more ideal way to reformat the path instead would be something like this and then to use path_parts = []
path = os.path.normpath(module_path)
while path:
path, tail = os.path.split(path)
path_parts.insert(0, tail)
module_path = posixpath.join(*path_parts) But anyways, since I see the |
Referencing a module with NodeRequirer will end in a "slash" / "backslash" mixed filepath. Don't know if this issue is tackled due my brain...
In the
*.sublime-project
file, I made the "path" absolute (works well in st):The result looks like something like this:
Any ideas how we could resolve this issue?
The text was updated successfully, but these errors were encountered: