Sigh 'stable' releases
This commit is contained in:
parent
b471e2ab82
commit
20f3f01b6a
1 changed files with 7 additions and 0 deletions
|
@ -1,14 +1,21 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from shlex import quote as sh_quote
|
from shlex import quote as sh_quote
|
||||||
|
import sys
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from vfs import Vfs
|
from vfs import Vfs
|
||||||
|
|
||||||
|
|
||||||
|
# FIXME: This should be a config somewhere
|
||||||
SHELL = "/bin/sh"
|
SHELL = "/bin/sh"
|
||||||
|
|
||||||
|
# Light monkeypatching because macos ships a "stable" a py
|
||||||
|
if sys.version_info <= (3, 9, 0):
|
||||||
|
Path.readlink = lambda p: Path(os.readlink(str(p)))
|
||||||
|
|
||||||
|
|
||||||
def sh(cmd: List[str], /,
|
def sh(cmd: List[str], /,
|
||||||
env: Optional[dict] = None):
|
env: Optional[dict] = None):
|
||||||
|
|
Loading…
Reference in a new issue