Commit 00c3566
bugfix: fix incorrect path slice in strict module loader
Summary:
`path[:12]` takes the first 12 characters of the path instead of stripping
`__init__.py` from the end. This meant `submodule_search_locations` for strict
packages would always be wrong. Replaced with `os.path.dirname(path)` which is
the standard idiom for getting the directory of a file.
Reviewed By: yoney
Differential Revision: D97805946
fbshipit-source-id: 55df9a1b93969b921348661a937919575c74f6921 parent d7b192d commit 00c3566
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
0 commit comments