updating stupid venv thing

This commit is contained in:
2021-12-22 12:54:23 -05:00
parent 8360b4a4dc
commit 022505d957
637 changed files with 212972 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import os
import stat
import subprocess
from glob import glob
from os.path import join, dirname, abspath
__all__ = ['mpy_cross', 'run']
mpy_cross = abspath(glob(join(dirname(__file__), 'mpy-cross*'))[0])
def run(*args, **kwargs):
try:
st = os.stat(mpy_cross)
os.chmod(mpy_cross, st.st_mode | stat.S_IEXEC)
except OSError:
pass
return subprocess.Popen([mpy_cross] + list(args), **kwargs)

View File

@@ -0,0 +1,4 @@
import sys
from . import run
sys.exit(run(*sys.argv[1:]).wait())

Binary file not shown.