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
--- a/contrib/packaging/pyoxidizer.bzl Mon Feb 17 20:30:03 2020 -0500
+++ b/contrib/packaging/pyoxidizer.bzl Thu Feb 13 15:33:36 2020 -0800
@@ -21,6 +21,8 @@
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,