Skip to content

Commit dcce62d

Browse files
committed
unix-ffi/os-path: Add unix-ffi version of os-path package.
This package reuses the code from the python-stdlib version of `os-path` but requires the unix-ffi version of `os`. This also updates `glob` to require this version of `os-path`. Signed-off-by: Jeffery To <[email protected]>
1 parent 7128d42 commit dcce62d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

unix-ffi/glob/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
metadata(version="0.5.2")
22

33
require("os", unix_ffi=True)
4-
require("os-path")
4+
require("os-path", unix_ffi=True)
55
require("re", unix_ffi=True)
66
require("fnmatch")
77

unix-ffi/os-path/manifest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
metadata(version="0.1.4")
2+
3+
# Originally written by Paul Sokolovsky.
4+
5+
require("os", unix_ffi=True)
6+
package("os", base_path="../../python-stdlib/os-path")

unix-ffi/os/os/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
import ffilib
66
import uos
77

8+
# Provide optional dependencies (which may be installed separately).
9+
try:
10+
from . import path
11+
except ImportError:
12+
pass
13+
814
R_OK = const(4)
915
W_OK = const(2)
1016
X_OK = const(1)

0 commit comments

Comments
 (0)