chore(importer): add helpers for runtime flags · MeVisLab/pythonqt@95f99ff · GitHub
Skip to content

Commit 95f99ff

Browse files
jcfrmrbean-bremen
authored andcommitted
chore(importer): add helpers for runtime flags
Introduce getSysVerbose() and getSysOptimizationLevel() to read verbosity/optimization in a version-safe way: On Python ≥ 3.12: query sys.flags.verbose / sys.flags.optimize. On older Pythons: fall back to Py_VerboseFlag / Py_OptimizeFlag.
1 parent c875317 commit 95f99ff

1 file changed

Lines changed: 29 additions & 40 deletions

File tree

src/PythonQtImporter.cpp

Lines changed: 29 additions & 40 deletions

0 commit comments

Comments
 (0)