mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2227 from mikaeldusenne/hotfix/empty-dirname-inotify
add os.path.abspath() in dirname generation of the reloader
This commit is contained in:
commit
57fbbce554
@ -93,7 +93,7 @@ if has_inotify:
|
||||
|
||||
def get_dirs(self):
|
||||
fnames = [
|
||||
os.path.dirname(COMPILED_EXT_RE.sub('py', module.__file__))
|
||||
os.path.dirname(os.path.abspath(COMPILED_EXT_RE.sub('py', module.__file__)))
|
||||
for module in tuple(sys.modules.values())
|
||||
if getattr(module, '__file__', None)
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user