Lines Matching refs:file_path
41 def clean_sys_resource(file_path=None, file_base_name=None):
44 :param file_path: sys path
48 if file_path in sys.path:
49 sys.path.remove(file_path)
74 def get_dir_path(file_path):
75 if isinstance(file_path, str):
76 if os.path.exists(file_path):
77 return os.path.dirname(file_path)
81 def import_from_file(file_path, file_base_name):
82 if file_path in sys.path:
83 sys.path.remove(file_path)
85 sys.path.insert(0, file_path)
92 file_abs_path = os.path.join(file_path, file_base_name)
332 def is_standard_lib(file_path):
335 return file_path.startswith(std_lib_path)
338 def is_third_party_lib(file_path):
344 return any(file_path.startswith(site_package) for site_package in site_packages)