Jellyfin(8096), OrbStack(8097) 포트 충돌으로 변경. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
455 B
Python
20 lines
455 B
Python
import sys
|
|
import subprocess
|
|
|
|
|
|
def __optim_args_from_interpreter_flags():
|
|
"""Return a list of command-line arguments reproducing the current
|
|
optimization settings in sys.flags."""
|
|
args = []
|
|
value = sys.flags.optimize
|
|
if value > 0:
|
|
args.append("-" + "O" * value)
|
|
return args
|
|
|
|
|
|
_optim_args_from_interpreter_flags = getattr(
|
|
subprocess,
|
|
"_optim_args_from_interpreter_flags",
|
|
__optim_args_from_interpreter_flags,
|
|
)
|