Always use the local version of workspace_tools

This ensures compatibility with the mbed-tools package.
pull/135/head
Bogdan Marinescu 2013-12-19 15:02:57 +02:00
parent 34a43eaa41
commit e162e96245
9 changed files with 9 additions and 9 deletions

View File

@ -21,7 +21,7 @@ import datetime
from time import time
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.build_api import build_project, build_mbed_libs
from workspace_tools.tests import TEST_MAP, GROUPS

View File

@ -20,7 +20,7 @@ from os.path import join, abspath, dirname
# Be sure that the tools directory is in the search path
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.build_api import build_mbed_libs
from workspace_tools.targets import TARGET_MAP

View File

@ -17,7 +17,7 @@ limitations under the License.
import sys
from os.path import join, abspath, dirname, exists
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from shutil import move

View File

@ -18,7 +18,7 @@ limitations under the License.
import sys
from os.path import join, abspath, dirname
ROOT = abspath(join(dirname(__file__), "..", ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.private_settings import LOCALHOST
from SocketServer import BaseRequestHandler, TCPServer

View File

@ -25,7 +25,7 @@ from time import sleep
# Be sure that the tools directory is in the search path
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.options import get_default_options_parser
from workspace_tools.build_api import build_project

View File

@ -1,7 +1,7 @@
import sys
from os.path import join, abspath, dirname, exists
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from shutil import move
from optparse import OptionParser

View File

@ -27,7 +27,7 @@ import json
# Be sure that the tools directory is in the search path
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.utils import delete_dir_files
from workspace_tools.settings import *

View File

@ -21,7 +21,7 @@ import csv
from collections import defaultdict
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.paths import BUILD_DIR, TOOLS_DATA
from workspace_tools.settings import GCC_ARM_PATH

View File

@ -29,7 +29,7 @@ import re
import string
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.append(ROOT)
sys.path.insert(0, ROOT)
from workspace_tools.settings import MBED_ORG_PATH, MBED_ORG_USER, BUILD_DIR
from workspace_tools.paths import LIB_DIR