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

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


 

Please Log in to join the conversation.

More
4 years 6 months ago #241359 by TurBoss
hello, you need to put the same name you have in the setup.py entry_points section

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.

More
4 years 6 months ago #241396 by tripwire
Thanks! I'll check that out.

Please Log in to join the conversation.

More
4 years 6 months ago #241516 by tripwire
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.

More
4 years 6 months ago #241554 by TurBoss
i do with
python3 -m pip install -e .

with dot at the end

Please Log in to join the conversation.

More
4 years 6 months ago #241644 by tripwire
That worked perfectly. Thanks!

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum