Run custom VCP (Virtual Control Panel) without needing full path

More
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!


 

Please Log in or Create an account to join the conversation.

More
27 Apr 2022 08:01 #241359 by TurBoss
hello, you need to put the same name you have in the setup.py entry_points section

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.

More
27 Apr 2022 19:42 #241396 by tripwire
Thanks! I'll check that out.

Please Log in or Create an account to join the conversation.

More
28 Apr 2022 17:16 #241516 by tripwire
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.

More
28 Apr 2022 19:18 #241554 by TurBoss
i do with
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.

More
29 Apr 2022 14:03 #241644 by tripwire
That worked perfectly. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.078 seconds
Powered by Kunena Forum