Sigh 'stable' releases
This commit is contained in:
parent
1cf8dab616
commit
e39df4d663
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