Merge branch 'master' into ts2

This commit is contained in:
Dave Halter committed 2019-04-05 15:44:25 +02:00
commit d6232e238a
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -209,7 +209,8 @@ def transform_path_to_dotted(sys_path, module_path):
"""
Returns the dotted path inside a sys.path as a list of names. e.g.
>>> transform_path_to_dotted(["/foo"], '/foo/bar/baz.py')
>>> from os.path import abspath
>>> transform_path_to_dotted([abspath("/foo")], abspath('/foo/bar/baz.py'))
(('bar', 'baz'), False)
Returns (None, False) if the path doesn't really resolve to anything.