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

Expose __BRYTHON__ in globals() #1181

Closed
Andrei-Pozolotin opened this issue Aug 8, 2019 · 2 comments
Closed

Expose __BRYTHON__ in globals() #1181

Andrei-Pozolotin opened this issue Aug 8, 2019 · 2 comments

Comments

@Andrei-Pozolotin
Copy link

  1. currently __BRYTHON__ is implicitly available in browser mode in global scope,
    but is missing from globals()

  2. it would help to expose __BRYTHON__ in globals() to avoid import errors in editor mode:

BRYTHON = globals()['__BRYTHON__']
BRYTHON.path = [  'http://user-test/path'  ]
  1. perhaps __BRYTHON__ should not be automatically/implicitly
    made available in browser mode in global scope at all
@PierreQuentel
Copy link
Contributor

I have added __BRYTHON__ to globals() as you suggested, but you are right, it would be better to access the values stored in __BRYTHON__ with modules such as os or sys. This means rewriting a few scripts, I will do it shortly. Thanks !

@Andrei-Pozolotin
Copy link
Author

great, thank you

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

2 participants