- Posts: 85
- Thank you received: 0
Run custom VCP (Virtual Control Panel) without needing full path
4 years 6 months ago #241253
by tripwire
Ol' tripwire here again....
I've created a new VCP and I've got it so linuxcnc will run it but only if I specify the full path in the ini file as in the following:
[DISPLAY]
DISPLAY = qtpyvcp
VCP = ~/vcp1/vcp1/ui/mainwindow.ui
However, in an earlier setup I was able to just specify DISPLAY = vcp1 and linuxcnc would load the vcp.
Also, I could enter the command: editvcp vcp1 and this would work. (Now id doesn't.)
I think I need an entry in my .local/bin that points to the vcp.
Can someone tell me how to accomplish this?
Thanks!
I've created a new VCP and I've got it so linuxcnc will run it but only if I specify the full path in the ini file as in the following:
[DISPLAY]
DISPLAY = qtpyvcp
VCP = ~/vcp1/vcp1/ui/mainwindow.ui
However, in an earlier setup I was able to just specify DISPLAY = vcp1 and linuxcnc would load the vcp.
Also, I could enter the command: editvcp vcp1 and this would work. (Now id doesn't.)
I think I need an entry in my .local/bin that points to the vcp.
Can someone tell me how to accomplish this?
Thanks!
Please Log in to join the conversation.
4 years 6 months ago #241359
by TurBoss
Replied by TurBoss on topic Run custom VCP (Virtual Control Panel) without needing full path
hello, you need to put the same name you have in the setup.py entry_points section
see :
github.com/TurBoss/JauriaCNC/blob/master/setup.py#L20=
see :
Code:
entry_points={"gui_scripts": ["tnc=tnc:main",],"qtpyvcp.vcp": ["tnc=tnc",],},
github.com/TurBoss/JauriaCNC/blob/master/setup.py#L20=
Please Log in to join the conversation.
4 years 6 months ago #241396
by tripwire
Replied by tripwire on topic Run custom VCP (Virtual Control Panel) without needing full path
Thanks! I'll check that out.
Please Log in to join the conversation.
4 years 6 months ago #241516
by tripwire
Replied by tripwire on topic Run custom VCP (Virtual Control Panel) without needing full path
Maybe a naive question but how does setup.py get run? Do I simply run it manually? As in
Code:
vcp-directory$ python3 setup.py
Please Log in to join the conversation.
4 years 6 months ago #241554
by TurBoss
Replied by TurBoss on topic Run custom VCP (Virtual Control Panel) without needing full path
i do with
python3 -m pip install -e .
with dot at the end
python3 -m pip install -e .
with dot at the end
Please Log in to join the conversation.
Time to create page: 0.085 seconds
