Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bugfix: interactivemode: Work with Python 3.2 also
  • Loading branch information
luke-jr committed Jun 23, 2015
1 parent 70e71f7 commit 6aa27e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interactivemode.py
Expand Up @@ -27,7 +27,7 @@ def _RunCLI():
# The goal here is to find the context that imported us
try:
frame = sys.exc_info()[2].tb_frame
while frame.f_code.co_filename[0] != '<':
while frame.f_code.co_filename == __file__:
frame = frame.f_back
while frame.f_code.co_filename[0] == '<':
frame = frame.f_back
Expand Down

0 comments on commit 6aa27e0

Please sign in to comment.