forked from platformio/platformio-core
Resolve issue #9: ImportError: No module named platformio.util
This commit is contained in:
@ -4,6 +4,11 @@ Release History
|
||||
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)
|
||||
------------------
|
||||
|
||||
@ -15,8 +20,8 @@ Release History
|
||||
with external library (Adafruit CC3000)
|
||||
* Implemented ``platformio upgrade`` command and "auto-check" for the latest
|
||||
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 bug with nested libs building (thanks `Antonio Vanegas <https://github.com/hpsaturn>`_ for testing)
|
||||
* Fixed an issue with "auto-reset" for Raspduino board
|
||||
* Fixed a bug with nested libs building
|
||||
|
||||
0.4.0 (2014-07-31)
|
||||
------------------
|
||||
|
@ -1,13 +1,22 @@
|
||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||
# 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 SCons.Script import (DefaultEnvironment, Exit, SConscript,
|
||||
SConscriptChdir, Variables)
|
||||
|
||||
from platformio.util import (get_home_dir, get_pioenvs_dir, get_project_dir,
|
||||
get_source_dir)
|
||||
from platformio.util import get_pioenvs_dir, get_project_dir, get_source_dir
|
||||
|
||||
# AllowSubstExceptions()
|
||||
|
||||
|
Reference in New Issue
Block a user