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

vsh: cannot use constants from auto-imported modules #6372

Open
serkonda7 opened this issue Sep 14, 2020 · 3 comments
Open

vsh: cannot use constants from auto-imported modules #6372

serkonda7 opened this issue Sep 14, 2020 · 3 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@serkonda7
Copy link
Contributor

V version: V 0.1.29 01b28ef
OS: Manjaro

What did you do?

// script.vsh
println(path_separator)

What did you expect to see?
Output of /

What did you see instead?

[...] error: undefined ident: `path_separator`
[...]
@serkonda7 serkonda7 added the Bug This tag is applied to issues which reports bugs. label Sep 14, 2020
@Henrixounez
Copy link
Member

You can use it, but have to explicitely say it is from the os module as : os.path_separator.
Do you wish to be able to use the variable without the os. part ?

@serkonda7
Copy link
Contributor Author

Yes, I do not need to type os. before functions, so I don't expect to need it for constants too.

@danieldaeschle
Copy link
Member

@spytheman how should this behave? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

3 participants