Lines Matching full:os
27 import os
85 os.remove(f)
102 old_path = os.environ['PATH']
103 os.environ['PATH'] = _e['PATH']
109 print ('Exception: ' + os.strerror(e.errno))
110 if (os.strerror(e.errno) == "No such file or directory"):
115 os.environ['PATH'] = old_path
125 if not os.path.isfile('cconfig.h'):
130 if os.path.isfile('cconfig.h'):
207 Rtt_Root = os.path.abspath(root_directory)
218 sys.path = sys.path + [os.path.join(Rtt_Root, 'tools')]
245 os.environ['RTT_CC'] = rtconfig.CROSS_TOOL
255 if not os.path.exists(rtconfig.EXEC_PATH):
256 if 'RTT_EXEC_PATH' in os.environ:
258 del os.environ['RTT_EXEC_PATH']
263 if not os.path.isfile(os.path.join(rtconfig.EXEC_PATH, 'armcc.exe')):
290 os.environ['PATH'] = rtconfig.EXEC_PATH + ";" + os.environ['PATH']
292 os.environ['PATH'] = rtconfig.EXEC_PATH + ":" + os.environ['PATH']
320 env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_"))
607 paths.append(os.path.abspath(item))
619 paths.append(os.path.abspath(item))
630 …if GetOption('cleanlib') and os.path.exists(os.path.join(group['path'], GroupLibFullName(name, Env…
633 fn = os.path.join(group['path'], GroupLibFullName(name, Env))
634 if os.path.exists(fn):
635 os.unlink(fn)
665 path = os.path.dirname(fn.abspath)
696 dst_name = os.path.join(Group['path'], lib_name)
773 template = os.path.isfile('template.Uv2')
777 template = os.path.isfile('template.uvproj')
781 template = os.path.isfile('template.uvprojx')
863 if not os.path.exists(rtconfig.EXEC_PATH):
877 if os.path.isabs(remove):
878 remove = os.path.relpath(remove, GetCurrentDir())
879 remove = os.path.normpath(remove)
887 if os.path.isabs(item_str):
888 item_str = os.path.relpath(item_str, GetCurrentDir())
889 item_str = os.path.normpath(item_str)
896 if os.path.isabs(remove_str):
897 remove_str = os.path.relpath(remove_str, GetCurrentDir())
898 remove_str = os.path.normpath(remove_str)
906 if os.path.isabs(item_str):
907 item_str = os.path.relpath(item_str, GetCurrentDir())
908 item_str = os.path.normpath(item_str)
917 rtdef = os.path.join(Rtt_Root, 'include', 'rtdef.h')
937 import os
941 list = os.listdir(sub_dir)
942 src = glob.glob(os.path.join(sub_dir, ext_name))
945 full_subdir = os.path.join(sub_dir, item)
946 if os.path.isdir(full_subdir):
953 dst.append(os.path.relpath(item, sub_dir))