Skip to content

Commit 591e0bf

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Add patch '15-cinderx-site-import' to third-party/python/3.14
Summary: This diff adds a patch to the `third-party/python/3.14` Meta-internal fork. Import init_cinderx in sitecustomize Reviewed By: yoney Differential Revision: D86314368 fbshipit-source-id: e6eddc821e2850f6eedee6cde340a6ead99330a6
1 parent 86c6d6e commit 591e0bf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lib/site.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,15 @@ def main():
712712
sethelper()
713713
if not sys.flags.isolated:
714714
enablerlcompleter()
715+
# If we've been built with CinderX support there will be an init_cinderx.py
716+
# included in the default module search path. In this case we import it
717+
# which will have the side-effect of initializing CinderX. If this module
718+
# is missing then we weren't build with CinderX so ignoring the import
719+
# error is fine.
720+
try:
721+
import init_cinderx
722+
except ImportError:
723+
pass
715724
execsitecustomize()
716725
if ENABLE_USER_SITE:
717726
execusercustomize()

0 commit comments

Comments
 (0)