Skip to content

Handling with pyc files ignores standard python flags #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kreuzberger opened this issue Mar 12, 2021 · 1 comment
Closed

Handling with pyc files ignores standard python flags #41

kreuzberger opened this issue Mar 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@kreuzberger
Copy link

kreuzberger commented Mar 12, 2021

Hi!
During development we added the -B (DontWriteByteCode) and the environment variables for that to our execution.
PythonQt seems to ignore those flags in PythonQtImporter and writes/loads the pyc files directly.

I think the writing of pyc files NOT in pycache has historical py2 reasons, but could the flag be evaluated in PythonQtImporter?
There is a function to load with standard python loader in PythonQt.h, but i seems too different to the "reqular" parseFile Method
and is not referenced by the interface to evaluate it.

Could handling of this flag be integrated? Or a PythonQt specific Flag would be also ok? Second would be better to have "normal" python behaviour of writing cache files only for imported files/modules and not during call of evalFile

@florianlink
Copy link
Collaborator

florianlink commented Mar 12, 2021 via email

@mrbean-bremen mrbean-bremen added the enhancement New feature or request label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants