Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os
Diff: neo.py
- Revision:
- 19:6ace1080b8bb
- Parent:
- 18:1b4252106474
- Child:
- 20:84d6e18cbc20
--- a/neo.py Wed Mar 30 02:41:05 2016 -0500
+++ b/neo.py Wed Mar 30 03:00:31 2016 -0500
@@ -167,6 +167,10 @@
for url, lib in iterlibs():
import_(url, lib)
+ if (not os.path.isfile('mbed_settings.py') and
+ os.path.isfile('mbed-os/tools/settings.py')):
+ shutil.copy('mbed-os/tools/settings.py', 'mbed_settings.py')
+
# Deploy command
@subcommand('deploy',
help='recursively import libraries in current directory')
@@ -262,9 +266,6 @@
sys.stderr.write('Warning! mbed-os not found?')
sys.exit(-1)
- if not os.path.isfile('mbed_settings.py'):
- shutil.copy('mbed-os/tools/settings.py', 'mbed_settings.py')
-
if os.path.isfile('MACROS.txt'):
with open('MACROS.txt') as f:
macros = f.read().splitlines()
@@ -288,9 +289,6 @@
sys.stderr.write('Warning! mbed-os not found?')
sys.exit(-1)
- if not os.path.isfile('mbed_settings.py'):
- shutil.copy('mbed-os/tools/settings.py', 'mbed_settings.py')
-
env = os.environ.copy()
env['PYTHONPATH'] = '.'
popen(['python', 'mbed-os/tools/project.py',