Sigh 'stable' releases

This commit is contained in:
Reid 'arrdem' McKenzie 2022-07-28 19:24:38 -06:00
parent b471e2ab82
commit 20f3f01b6a

View file

@ -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):