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

Pycharm can't set bool env #87

Closed
gshmu opened this issue Jun 27, 2019 · 1 comment
Closed

Pycharm can't set bool env #87

gshmu opened this issue Jun 27, 2019 · 1 comment

Comments

@gshmu
Copy link

gshmu commented Jun 27, 2019

I want set boolean var, but is still string.

in python, os.environ.get('VAR') get "true", "1", "True"...

I'm tried json and yaml etc

@ashald
Copy link
Owner

ashald commented Jun 27, 2019

Environment variables are string by definition - you have to cast value explicitly.

@ashald ashald closed this as completed Jun 27, 2019
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