(prefix, path)
| 27 | from utils import _make_path_relative |
| 28 | |
| 29 | def PrefixPath(prefix, path): |
| 30 | path = os.path.abspath(path) |
| 31 | prefix = os.path.abspath(prefix) |
| 32 | |
| 33 | if sys.platform == 'win32': |
| 34 | prefix = prefix.lower() |
| 35 | path = path.lower() |
| 36 | |
| 37 | if path.startswith(prefix): |
| 38 | return True |
| 39 | |
| 40 | return False |
| 41 | |
| 42 | def PrepareUA(project, RTT_ROOT, BSP_ROOT): |
| 43 | with open('rtua.py', 'w') as ua: |