mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
11 lines
337 B
Python
11 lines
337 B
Python
# https://github.com/python-poetry/poetry/issues/241#issuecomment-445434646
|
|
|
|
import sys
|
|
import subprocess
|
|
|
|
|
|
def __getattr__(name): # python 3.7+, otherwise define each script manually
|
|
name = name.replace('_', '-')
|
|
subprocess.run(
|
|
['python', '-u', '-m', name] + sys.argv[1:]
|
|
) # run whatever you like based on 'name' |