Commits

Takafumi Arakaki committed 93831bf Merge

merged

Comments (0)

Files changed (1)

     while frame:
         # checking frame.f_code.co_name == 'pymacs_load_helper' might
         # be very fragile.
-        if inspect.getfile(frame).rstrip('c').endswith('pymacs.py'):
+        filename = inspect.getfile(frame).rstrip('c')
+        if filename.endswith(('Pymacs.py', 'pymacs.py')):
             return True
         frame = frame.f_back