Skip to content

Commit 154b8b0

Browse files
committed
pkg_resources: Don't try to make FS path absolute so far.
There's no uos.getcwd() on Unix - so far.
1 parent 7d9eb07 commit 154b8b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg_resources/pkg_resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def resource_stream(package, resource):
1616
d = p.__path__
1717
else:
1818
d = "."
19-
if d[0] != "/":
20-
import uos
21-
d = uos.getcwd() + "/" + d
19+
# if d[0] != "/":
20+
# import uos
21+
# d = uos.getcwd() + "/" + d
2222
c[package] = d + "/"
2323

2424
p = c[package]

0 commit comments

Comments
 (0)