Merge 3.5
This commit is contained in:
commit
6384c66d1f
|
@ -399,8 +399,9 @@ def _module_relative_path(module, path):
|
||||||
basedir = os.curdir
|
basedir = os.curdir
|
||||||
else:
|
else:
|
||||||
# A module w/o __file__ (this includes builtins)
|
# A module w/o __file__ (this includes builtins)
|
||||||
raise ValueError("Can't resolve paths relative to the module " +
|
raise ValueError("Can't resolve paths relative to the module "
|
||||||
module + " (it has no __file__)")
|
"%r (it has no __file__)"
|
||||||
|
% module.__name__)
|
||||||
|
|
||||||
# Combine the base directory and the path.
|
# Combine the base directory and the path.
|
||||||
return os.path.join(basedir, *(path.split('/')))
|
return os.path.join(basedir, *(path.split('/')))
|
||||||
|
|
Loading…
Reference in New Issue