mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7673 from bridadan/allow_memap_script_to_execute_alone
Fixing import paths of memap.py when excuted as a scriptpull/7635/merge
commit
ce43f8b9d6
|
@ -4,10 +4,15 @@
|
|||
from __future__ import print_function, division, absolute_import
|
||||
|
||||
from abc import abstractmethod, ABCMeta
|
||||
from sys import stdout, exit, argv
|
||||
from sys import stdout, exit, argv, path
|
||||
from os import sep, rename, remove
|
||||
from os.path import (basename, dirname, join, relpath, abspath, commonprefix,
|
||||
splitext, exists)
|
||||
|
||||
# Be sure that the tools directory is in the search path
|
||||
ROOT = abspath(join(dirname(__file__), ".."))
|
||||
path.insert(0, ROOT)
|
||||
|
||||
import re
|
||||
import csv
|
||||
import json
|
||||
|
@ -18,9 +23,9 @@ from prettytable import PrettyTable
|
|||
from jinja2 import FileSystemLoader, StrictUndefined
|
||||
from jinja2.environment import Environment
|
||||
|
||||
from .utils import (argparse_filestring_type, argparse_lowercase_hyphen_type,
|
||||
from tools.utils import (argparse_filestring_type, argparse_lowercase_hyphen_type,
|
||||
argparse_uppercase_type)
|
||||
from .settings import COMPARE_FIXED
|
||||
from tools.settings import COMPARE_FIXED
|
||||
|
||||
|
||||
class _Parser(object):
|
||||
|
|
Loading…
Reference in New Issue