Skip to content
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

Importing files using pyprocessor? #19

Open
kefik opened this issue Jul 8, 2018 · 1 comment
Open

Importing files using pyprocessor? #19

kefik opened this issue Jul 8, 2018 · 1 comment

Comments

@kefik
Copy link

kefik commented Jul 8, 2018

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!

@cxw42
Copy link
Member

cxw42 commented Aug 4, 2018

@kefik Do you happen to have a minimal test case you could post?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants