Home | History | Annotate | Download | only in multiprocessing

Lines Matching refs:main_path

176         main_path = getattr(main_module, '__file__', None)
177 if main_path is not None:
178 if (not os.path.isabs(main_path) and
180 main_path = os.path.join(process.ORIGINAL_DIR, main_path)
181 d['init_main_from_path'] = os.path.normpath(main_path)
254 def _fixup_main_from_path(main_path):
262 main_name = os.path.splitext(os.path.basename(main_path))[0]
268 if getattr(current_main, '__file__', None) == main_path:
276 main_content = runpy.run_path(main_path,
282 def import_main_path(main_path):
284 Set sys.modules['__main__'] to module at main_path
286 _fixup_main_from_path(main_path)