Open
Description
Thanks for this, it's very helpful...
I was wondering if there is a way to run this on a file that you import from an interactive shell(or when using the -i switch)
When I try to import a file that looks like:
from pypreprocessor import pypreprocessor
pypreprocessor.input = __name__ + '.py'
pypreprocessor.parse()
...
I get the expected behavior, but the sys.exit() after on_the_fly() in post_process() closes the interpreter. I'm not sure if there's a way around that without messing with the python compiler/interpreter or using an exception to breakout of the import process - neither of which seems very appealing.
Or am I just missing something simple?
-jon
Metadata
Metadata
Assignees
Labels
No labels