import subprocess

skill_scripts = '/home/magdalena/.hermes/plugins/iarquiteto-naval-brana/skills/brana-rascunho-2d-interativo/scripts'

cmd = [
    'python3', f'{skill_scripts}/ajustar.py',
    '--loa-sq', '24',
    '--curva', 'planSheer', '0,3.60', '5,3.90', '10,3.80', '16,2.80', '24,0',
    '--curva', 'planChine', '0,2.88', '5,3.12', '10,3.04', '16,2.24', '24,0',
    '--curva', 'profSheer', '0,3.60', '6,3.50', '12,3.60', '18,4.20', '24,5.20',
    '--curva', 'profChine', '0,1.40', '6,1.20', '12,1.25', '18,2.20', '24,5.20',
    '--curva', 'profKeel', '0,0.40', '6,0.05', '12,0.00', '18,0.80', '24,5.20',
    '--projeto', '/home/magdalena/eee/alunos/aristides-cheto/projeto.json'
]

res = subprocess.run(cmd, capture_output=True, text=True)
print("Ajustar stdout:\n", res.stdout)
