def collect_native_files(package, files): pkg_base, pkg_dir = get_package_paths(package) return [(os.path.join(pkg_dir, file), '') for file in files]
from PyInstaller.hooks.hookutils import get_package_paths from PyInstaller.hooks.hookutils import collect_data_files package_name = "cloudify_openstack" package_path = get_package_paths(package_name)[1] datas = [(package_path + "/*.py", package_name)] + collect_data_files(package_name)
import os from PyInstaller.hooks.hookutils import collect_submodules from PyInstaller.hooks.hookutils import get_package_paths hiddenimports = collect_submodules('cloudify') _relative_ctx_client_path = 'cloudify/proxy' _pkg_base, _pkg_dir = get_package_paths('cloudify') _full_ctx_client_path = os.path.join(_pkg_base, _relative_ctx_client_path, 'client.py') datas = [(_full_ctx_client_path, _relative_ctx_client_path)]
from PyInstaller.hooks.hookutils import get_package_paths from PyInstaller.hooks.hookutils import collect_data_files package_name = 'cloudify_openstack' package_path = get_package_paths(package_name)[1] datas = [(package_path + '/*.py', package_name) ] + collect_data_files(package_name)
import os from PyInstaller.hooks.hookutils import collect_submodules from PyInstaller.hooks.hookutils import get_package_paths hiddenimports = collect_submodules("cloudify") _relative_ctx_client_path = "cloudify/proxy" _pkg_base, _pkg_dir = get_package_paths("cloudify") _full_ctx_client_path = os.path.join(_pkg_base, _relative_ctx_client_path, "client.py") datas = [(_full_ctx_client_path, _relative_ctx_client_path)]