mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-03-21 17:24:33 -05:00
Update scripts to remove incorrect bash invocation and make them execute from any directory.
This commit is contained in:
parent
74e0259129
commit
e126b845f6
11
2dxutils
11
2dxutils
|
|
@ -1,4 +1,9 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.twodxutils "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module("bemani.utils.twodxutils", run_name="__main__")
|
||||
|
|
|
|||
12
api
12
api
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.api "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
arcutils
12
arcutils
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.arcutils "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#! /usr/bin/env python3
|
||||
|
||||
# vim: set fileencoding=utf-8
|
||||
|
||||
import csv # type: ignore
|
||||
import argparse
|
||||
import copy
|
||||
|
|
|
|||
12
bemanishark
12
bemanishark
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.bemanishark "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
binutils
12
binutils
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.binutils "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
cardconvert
12
cardconvert
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.cardconvert "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
dbutils
12
dbutils
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.dbutils "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
frontend
12
frontend
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.frontend "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
ifsutils
12
ifsutils
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.ifsutils "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
iidxutils
12
iidxutils
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.iidxutils "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
proxy
12
proxy
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.proxy "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
psmap
12
psmap
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.psmap "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
read
12
read
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.read "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
replay
12
replay
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.replay "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
responsegen
12
responsegen
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.responsegen "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
scheduler
12
scheduler
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.scheduler "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
services
12
services
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.services "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
11
shell
11
shell
|
|
@ -1,4 +1,9 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import code
|
||||
code.InteractiveConsole().interact()
|
||||
|
|
|
|||
12
struct
12
struct
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.struct "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
12
trafficgen
12
trafficgen
|
|
@ -1,4 +1,10 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m bemani.utils.trafficgen "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
|
|
|
|||
18
verifylibs
18
verifylibs
|
|
@ -1,4 +1,16 @@
|
|||
#! /bin/bash
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
export PYTHONPATH=$(python -c "import os; print(os.path.realpath('.'))")
|
||||
python3 -m unittest discover -s bemani/tests "$@"
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
sys.argv = [
|
||||
sys.argv[0],
|
||||
"discover",
|
||||
"-s",
|
||||
os.path.join(path, "bemani/tests"),
|
||||
*sys.argv[1:],
|
||||
]
|
||||
|
||||
import runpy
|
||||
runpy.run_module("unittest", run_name="__main__")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user