Lines Matching refs:main_path
187 main_path = getattr(main_module, '__file__', None)
188 if main_path is not None:
189 if (not os.path.isabs(main_path) and
191 main_path = os.path.join(process.ORIGINAL_DIR, main_path)
192 d['init_main_from_path'] = os.path.normpath(main_path)
265 def _fixup_main_from_path(main_path): argument
273 main_name = os.path.splitext(os.path.basename(main_path))[0]
279 if getattr(current_main, '__file__', None) == main_path:
287 main_content = runpy.run_path(main_path,
293 def import_main_path(main_path): argument
297 _fixup_main_from_path(main_path)