A script that contains;
halrun
loadusr pyVCP.....
Might do what you want.
I have examples using GladeVCP:
Start file:
Code:
#! /bin/bash
halrun -I -i pressgui.ini bender.hal
Then the bender.hal has:
Code:
loadusr -Wn pressgui gladevcp -u pressgui.py pressgui.ui
loadusr -Wn pressmodel ./pressmodel
...
Which loads the control panel and a VIsmach model.
You don't need to use a HAL if you don't want to, though. You can just use halcmd and/or halrun.