forked from platformio/platformio-core
Add more info about .pioenvs
directory
This commit is contained in:
@@ -81,6 +81,7 @@ class cd(object):
|
||||
|
||||
|
||||
class memoized(object):
|
||||
|
||||
'''
|
||||
Decorator. Caches a function's return value each time it is called.
|
||||
If called later with the same arguments, the cached value is returned
|
||||
@@ -212,10 +213,18 @@ def get_projectlib_dir():
|
||||
|
||||
|
||||
def get_pioenvs_dir():
|
||||
return _get_projconf_option_dir(
|
||||
path = _get_projconf_option_dir(
|
||||
"envs_dir",
|
||||
join(get_project_dir(), ".pioenvs")
|
||||
)
|
||||
dontmod_path = join(path, "do-not-modify-files-here.url")
|
||||
if not isfile(dontmod_path):
|
||||
with open(dontmod_path, "w") as fp:
|
||||
fp.write("""
|
||||
[InternetShortcut]
|
||||
URL=http://docs.platformio.org/en/latest/projectconf.html#envs-dir
|
||||
""")
|
||||
return path
|
||||
|
||||
|
||||
def get_projectdata_dir():
|
||||
|
Reference in New Issue
Block a user