Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 20, 2017

No description provided.

@ghost ghost changed the title try file first, then code try to exec file first, then code Oct 20, 2017
def run(self, code, run_globals=None):
sys.settrace(self.trace_dispatch)
try:
exec(compile(open(code, "rb").read(), code, 'exec'), globals())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably wanna close this file

@raylu
Copy link
Owner

raylu commented Oct 20, 2017

I don't think this will work out that well in general. if your file has any import statements, the first 100 frames are just plumbing through import machinery, for example

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

Successfully merging this pull request may close these issues.

1 participant