# HG changeset patch # User Martin von Zweigbergk # Date 2020-02-13 23:33:36 # Node ID 6689cebacb329d0cd7b13cca4af6e1647eba5681 # Parent 218feb1a7e009507b56292b6ef467870475f2d39 pyoxidizer: allow extensions to be loaded from the file system It seems that setting this config is all that's needed to be able to load extensions from the file system (which we clearly want). Thanks for making this work, Gregory Szorc!. Differential Revision: https://phab.mercurial-scm.org/D8122 diff --git a/contrib/packaging/pyoxidizer.bzl b/contrib/packaging/pyoxidizer.bzl --- a/contrib/packaging/pyoxidizer.bzl +++ b/contrib/packaging/pyoxidizer.bzl @@ -21,6 +21,8 @@ def make_exe(): config = PythonInterpreterConfig( raw_allocator = "system", run_eval = code, + # We want to let the user load extensions from the file system + filesystem_importer = True, # We need this to make resourceutil happy, since it looks for sys.frozen. sys_frozen = True, legacy_windows_stdio = True,