353
353
def movie_data_program_info(moviePath, thumbnailPath):
354
354
main_bundle = NSBundle.mainBundle()
356
355
rsrc_path = main_bundle.resourcePath()
357
356
script_path = os.path.join(rsrc_path, 'qt_extractor.py')
358
357
options = main_bundle.infoDictionary().get('PyOptions')
360
359
if options['alias'] == 1:
361
361
env = {'PYTHONPATH': ':'.join(sys.path), 'MIRO_BUNDLE_PATH': main_bundle.bundlePath()}
364
py_exe_path = os.path.join(main_bundle.privateFrameworksPath(), "Python.framework", "Versions", py_version, "bin", 'python')
363
365
env = {'PYTHONHOME': rsrc_path, 'MIRO_BUNDLE_PATH': main_bundle.bundlePath()}
364
366
return ((py_exe_path, script_path, moviePath, thumbnailPath), env)