We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
os.environ.setdefault
Creating test file
# test.py import os os.environ.setdefault("lala", "tralala")
Running with codon
codon
$ codon run test.py test.py:3:1-41: error: 'EnvMap' object has no attribute 'setdefault' $ codon build -release -exe test.py test.py:3:1-41: error: 'EnvMap' object has no attribute 'setdefault'
The text was updated successfully, but these errors were encountered:
Codon has very limited native os module implementation yet. I sent a PR to implement this particular functionality.
os
Meanwhile, you can use python module:
from python import os os.environ.setdefault("lala", "tralala")
Sorry, something went wrong.
Hi @Real-Gecko ,
Yes, @avitkauskas is right---our os.environ implementation is pretty bare-bones at the moment. I'd also second using from python import for now.
os.environ
from python
Merging into #608 .
Successfully merging a pull request may close this issue.
Creating test file
Running with
codon
The text was updated successfully, but these errors were encountered: