-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
KeyError when trying to access env['PIOHOME_DIR'] #2971
Comments
See valid variables |
You need
|
Do you happen to know when this change was made? |
Pharap
added a commit
to Pharap/PokittoIO
that referenced
this issue
Sep 2, 2019
The environment variable name was changed at some point during PlatformIO's development. See platformio/platformio-core#2971 for more info.
These are internal variables and we use them for own needs. I recommend using PIO Core API instead. platformio.project.helpers import get_project_core_dir
print(get_project_core_dir()) Please note that Core folder can differ between projects. |
Pharap
added a commit
to Pharap/PokittoIO
that referenced
this issue
Sep 2, 2019
Apparently the old way was using an internal feature rather than the intented public API. See platformio/platformio-core#2971 for more info.
This was referenced Sep 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What kind of issue is this?
Question.
This issue tracker is not the place for questions. If you want to ask how to do something,
or to understand why something isn't working the way you expect it to,
use Community Forums or Premium Support
PlatformIO IDE.
All issues related to PlatformIO IDE should be reported to appropriate repository:
PlatformIO IDE for Atom or
PlatformIO IDE for VSCode
Development Platform or Board.
All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
should be reported to appropriate repository related to your hardware
https://github.com/topics/platformio-platform
Feature Request.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
PlatformIO Core.
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Windows 8.1
PlatformIO Version (
platformio --version
): PlatformIO 4.0.3Description of problem
Environment key
'PIOHOME_DIR'
does not exist when running a 'pre' script.Steps to Reproduce
platformio.ini
:extra_scripts = pre:test.py
test.py
with the following contents:Actual Results
Console gives errors:
Expected Results
Console should output either:
Or:
*
C:\users\user\.platformio
is a symlink toI:\User\.platformio
The text was updated successfully, but these errors were encountered: