pypreprocessor
pypreprocessor copied to clipboard
Importing files using pyprocessor?
trafficstars
Hi! Great project! I'm trying to use pyprocessor importing classes from my own files; it is not working. My code is crashing with errors that they cannot be imported.
As examples are very limited, I'm in doubt whether pyprocessor is supporting that? If so, should I include pyprocessor.parse in every py file I create? (Adding pyprocessor to main.py is not affecting any imports, which is understandable behavior imo.)
I would like to a) set #define DEBUG / RELEASE in main.py b) import other files that contains preprocessor stuff c) expect #ifdef DEBUG / RELEASE to be working.
How to achieve that? Thanks!
@kefik Do you happen to have a minimal test case you could post?