Prevent Creation of _pycache_ Folder

Updated Oct 25, 2023

Reported In

Software

  • LabVIEW
  • Python Integration Toolkit for LabVIEW

Issue Details

I am creating a system with Python nodes in LabVIEW and I want to prevent the creation of a __pycache__ folder. How can I do this?

Solution

To disable the write of the __pycache__ folder and .pyc files, you can set the PYTHONDONTWRITEBYTECODE environment variable to a non empty string.