diff --git a/HISTORY.rst b/HISTORY.rst index 5bc94036..d35e4fa0 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,7 +10,7 @@ PlatformIO 2.0 * Moved SCons to PlatformIO packages. PlatformIO does not require SCons to be installed in your system. Significantly simplified installation process of PlatformIO. ``pip install platformio`` rocks! -* Implemented uploading files to file system SPIFFS for ESP8266 +* Implemented uploading files to file system of ESP8266 SPIFFS (including OTA) (`issue #382 `_) * Added support for the new Adafruit boards Bluefruit Micro and Feather (`issue #403 `_) @@ -23,6 +23,8 @@ PlatformIO 2.0 * Documented `firmware uploading for Atmel AVR development platform using Programmers `_: AVR ISP, AVRISP mkII, USBtinyISP, USBasp, Parallel Programmer and Arduino as ISP +* Fixed issue with current Python interpreter for Python-based tools + (`pull #417 `_) 2.6.3 (2015-12-21) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/__init__.py b/platformio/__init__.py index e0d545ec..205489d2 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 7, "0.dev14") +VERSION = (2, 7, "0.dev15") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/builder/main.py b/platformio/builder/main.py index 0c66ff6d..d6b157d4 100644 --- a/platformio/builder/main.py +++ b/platformio/builder/main.py @@ -13,8 +13,9 @@ # limitations under the License. import json +import sys from os import environ -from os.path import join +from os.path import join, normpath from time import time from SCons.Script import COMMAND_LINE_TARGETS, DefaultEnvironment, Variables @@ -88,7 +89,9 @@ DefaultEnvironment( "$PROJECTLIB_DIR", util.get_lib_dir(), join("$PLATFORMFW_DIR", "libraries") - ] + ], + + PYTHONEXE=normpath(sys.executable) ) env = DefaultEnvironment() diff --git a/platformio/builder/scripts/espressif.py b/platformio/builder/scripts/espressif.py index 6e49bea7..1f013e68 100644 --- a/platformio/builder/scripts/espressif.py +++ b/platformio/builder/scripts/espressif.py @@ -115,12 +115,12 @@ env.Replace( UPLOADEROTAFLAGS=[ "--debug", "--progress", - "-i", '"$UPLOAD_PORT"', + "-i", "$UPLOAD_PORT", "$UPLOAD_FLAGS" ], UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS -cf $SOURCE', - UPLOADOTACMD='"$UPLOADEROTA" $UPLOADEROTAFLAGS -f $SOURCE', + UPLOADOTACMD='"$PYTHONEXE" "$UPLOADEROTA" $UPLOADEROTAFLAGS -f $SOURCE', # # Misc