Run custom VCP (Virtual Control Panel) without needing full path
25 Apr 2022 21:36 #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 or Create an account to join the conversation.
27 Apr 2022 08:01 #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 :
entry_points={"gui_scripts": ["tnc=tnc:main",],"qtpyvcp.vcp": ["tnc=tnc",],},
github.com/TurBoss/JauriaCNC/blob/master/setup.py#L20=
The following user(s) said Thank You: tripwire
Please Log in or Create an account to join the conversation.
27 Apr 2022 19:42 #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 or Create an account to join the conversation.
28 Apr 2022 17:16 #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
vcp-directory$ python3 setup.py
Please Log in or Create an account to join the conversation.
28 Apr 2022 19:18 #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
The following user(s) said Thank You: tripwire
Please Log in or Create an account to join the conversation.
29 Apr 2022 14:03 #241644
by tripwire
Replied by tripwire on topic Run custom VCP (Virtual Control Panel) without needing full path
That worked perfectly. Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds