Sigh 'stable' releases

This commit is contained in:
Reid 'arrdem' McKenzie 2022-07-28 19:24:38 -06:00
parent 1cf8dab616
commit e39df4d663

View file

@ -1,14 +1,21 @@
#!/usr/bin/env python3
import os
from pathlib import Path
from shlex import quote as sh_quote
import sys
from typing import List, Optional
from vfs import Vfs
# FIXME: This should be a config somewhere
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], /,
env: Optional[dict] = None):