mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
Update patch8266_16m.py
Абсолютный путь на портале, с ~ почему то перестал работать
This commit is contained in:
@@ -7,7 +7,7 @@ from sys import platform
|
||||
|
||||
if platform == "linux" or platform == "linux2":
|
||||
# linux
|
||||
mainPyPath = '~/.platformio/platforms/espressif8266@4.0.1/builder/main.py'
|
||||
mainPyPath = '/home/rise/.platformio/platforms/espressif8266@4.0.1/builder/main.py'
|
||||
else:
|
||||
# windows
|
||||
mainPyPath = os.environ['USERPROFILE'] + '\\.platformio\\platforms\\espressif8266@4.0.1\\builder\\main.py'
|
||||
@@ -20,4 +20,4 @@ with open(mainPyPath) as fr:
|
||||
shutil.copyfile(mainPyPath, mainPyPath+'.bak')
|
||||
newData = oldData.replace('_value += 0xE00000 # correction', '_value += 0xE00000 # correction\n\n if _value == -0x6000:\n _value = env[k]-0x40200000')
|
||||
with open(mainPyPath, 'w') as fw:
|
||||
fw.write(newData)
|
||||
fw.write(newData)
|
||||
|
||||
Reference in New Issue
Block a user