Skip to content

Commit cb5c592

Browse files
Fix nodely.bin.Module.__dir__:
Use dir(ORIGIN) instead of ORIGIN.__dir__ for Py2.7 compatibility
1 parent 2723aa6 commit cb5c592

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodely/bin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __dir__(self):
8686
for f in (NODE_MODULES_DIR / '.bin').files())
8787
if WIN: # pragma: no cover
8888
cmdnames = (cmd for cmd in cmdnames if cmd.ext.lower() != '.cmd')
89-
return super(Module, self).__dir__() + list(cmdnames)
89+
return dir(ORIGIN) + list(cmdnames)
9090

9191

9292
# replace nodely.bin module with wrapper instance

0 commit comments

Comments
 (0)