| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bc436ba commit fe6e627
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ class DeviceError(Exception): | |||
| 11 | 11 | import sys, re | |
| 12 | 12 | called_from = getattr(sys.modules['__main__'], '__file__', '<interactive>') | |
| 13 | 13 | is_windowed = bool(re.search(r'plotdevice(-app|/run/console)\.py$', called_from)) | |
| 14 | - in_setup = bool(sys.modules['__main__'].__file__.endswith('setup.py')) | ||
| 14 | + in_setup = bool(called_from.endswith('setup.py')) | ||
| 15 | 15 | ||
| 16 | 16 | # add the Extras directory to sys.path since every module depends on PyObjC and friends | |
| 17 | 17 | try: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments