mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Resolve issue #9: ImportError: No module named platformio.util
This commit is contained in:
@ -4,6 +4,11 @@ Release History
|
|||||||
1.0.0 (?)
|
1.0.0 (?)
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
0.6.0 (?)
|
||||||
|
---------
|
||||||
|
|
||||||
|
* Fixed an issue ``ImportError: No module named platformio.util`` (`issue #9 <https://github.com/ivankravets/platformio/issues/9>`_)
|
||||||
|
|
||||||
0.5.0 (2014-08-04)
|
0.5.0 (2014-08-04)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
@ -15,8 +20,8 @@ Release History
|
|||||||
with external library (Adafruit CC3000)
|
with external library (Adafruit CC3000)
|
||||||
* Implemented ``platformio upgrade`` command and "auto-check" for the latest
|
* Implemented ``platformio upgrade`` command and "auto-check" for the latest
|
||||||
version (`issue #8 <https://github.com/ivankravets/platformio/issues/8>`_)
|
version (`issue #8 <https://github.com/ivankravets/platformio/issues/8>`_)
|
||||||
* Fixed issue with "auto-reset" for Raspduino board (thanks `David Mills <https://github.com/g7uvw>`_ for testing)
|
* Fixed an issue with "auto-reset" for Raspduino board
|
||||||
* Fixed bug with nested libs building (thanks `Antonio Vanegas <https://github.com/hpsaturn>`_ for testing)
|
* Fixed a bug with nested libs building
|
||||||
|
|
||||||
0.4.0 (2014-07-31)
|
0.4.0 (2014-07-31)
|
||||||
------------------
|
------------------
|
||||||
|
@ -1,13 +1,22 @@
|
|||||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
|
try:
|
||||||
|
from platformio.util import get_home_dir
|
||||||
|
except ImportError:
|
||||||
|
import sys
|
||||||
|
for _path in sys.path:
|
||||||
|
if "platformio" in _path:
|
||||||
|
sys.path.insert(0, _path[:_path.rfind("platformio")-1])
|
||||||
|
break
|
||||||
|
from platformio.util import get_home_dir
|
||||||
|
|
||||||
from os.path import isdir, join
|
from os.path import isdir, join
|
||||||
|
|
||||||
from SCons.Script import (DefaultEnvironment, Exit, SConscript,
|
from SCons.Script import (DefaultEnvironment, Exit, SConscript,
|
||||||
SConscriptChdir, Variables)
|
SConscriptChdir, Variables)
|
||||||
|
|
||||||
from platformio.util import (get_home_dir, get_pioenvs_dir, get_project_dir,
|
from platformio.util import get_pioenvs_dir, get_project_dir, get_source_dir
|
||||||
get_source_dir)
|
|
||||||
|
|
||||||
# AllowSubstExceptions()
|
# AllowSubstExceptions()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user