Source

ropemacs / ropemacs / __init__.py

Diff from to

File ropemacs/__init__.py

     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