Skip to content

Commit e162e96

Browse files
author
Bogdan Marinescu
committed
Always use the local version of workspace_tools
This ensures compatibility with the mbed-tools package.
1 parent 34a43ea commit e162e96

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

workspace_tools/autotest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from time import time
2222

2323
ROOT = abspath(join(dirname(__file__), ".."))
24-
sys.path.append(ROOT)
24+
sys.path.insert(0, ROOT)
2525

2626
from workspace_tools.build_api import build_project, build_mbed_libs
2727
from workspace_tools.tests import TEST_MAP, GROUPS

workspace_tools/build_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Be sure that the tools directory is in the search path
2222
ROOT = abspath(join(dirname(__file__), ".."))
23-
sys.path.append(ROOT)
23+
sys.path.insert(0, ROOT)
2424

2525
from workspace_tools.build_api import build_mbed_libs
2626
from workspace_tools.targets import TARGET_MAP

workspace_tools/export_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import sys
1818
from os.path import join, abspath, dirname, exists
1919
ROOT = abspath(join(dirname(__file__), ".."))
20-
sys.path.append(ROOT)
20+
sys.path.insert(0, ROOT)
2121

2222
from shutil import move
2323

workspace_tools/host_tests/tcpecho_server_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import sys
1919
from os.path import join, abspath, dirname
2020
ROOT = abspath(join(dirname(__file__), "..", ".."))
21-
sys.path.append(ROOT)
21+
sys.path.insert(0, ROOT)
2222

2323
from workspace_tools.private_settings import LOCALHOST
2424
from SocketServer import BaseRequestHandler, TCPServer

workspace_tools/make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Be sure that the tools directory is in the search path
2727
ROOT = abspath(join(dirname(__file__), ".."))
28-
sys.path.append(ROOT)
28+
sys.path.insert(0, ROOT)
2929

3030
from workspace_tools.options import get_default_options_parser
3131
from workspace_tools.build_api import build_project

workspace_tools/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from os.path import join, abspath, dirname, exists
33
ROOT = abspath(join(dirname(__file__), ".."))
4-
sys.path.append(ROOT)
4+
sys.path.insert(0, ROOT)
55

66
from shutil import move
77
from optparse import OptionParser

workspace_tools/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Be sure that the tools directory is in the search path
2929
ROOT = abspath(join(dirname(__file__), ".."))
30-
sys.path.append(ROOT)
30+
sys.path.insert(0, ROOT)
3131

3232
from workspace_tools.utils import delete_dir_files
3333
from workspace_tools.settings import *

workspace_tools/size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from collections import defaultdict
2222

2323
ROOT = abspath(join(dirname(__file__), ".."))
24-
sys.path.append(ROOT)
24+
sys.path.insert(0, ROOT)
2525

2626
from workspace_tools.paths import BUILD_DIR, TOOLS_DATA
2727
from workspace_tools.settings import GCC_ARM_PATH

workspace_tools/synch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import string
3030

3131
ROOT = abspath(join(dirname(__file__), ".."))
32-
sys.path.append(ROOT)
32+
sys.path.insert(0, ROOT)
3333

3434
from workspace_tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR
3535
from workspace_tools.paths import LIB_DIR

0 commit comments

Comments
 (0)