python module

More
11 months 2 weeks ago #338457 by MaHa
python module was created by MaHa
Another question, about the python module. How can i get path and name of the current loaded file, in the python module. I need to read and find some specific content. I couldnt find the answer myself.

Please Log in to join the conversation.

More
11 months 1 week ago #338622 by JT
Replied by JT on topic python module
Do you need the name of the G code file or something else?

JT

Please Log in to join the conversation.

More
10 months 3 weeks ago #339699 by MaHa
Replied by MaHa on topic python module
One of the last problems to solve. I need to read from the current loaded file, to find some content. If this is possible from the imported testpy file, with a connected pushbutton.

 

Please Log in to join the conversation.

More
10 months 3 weeks ago #339720 by JT
Replied by JT on topic python module
parent.status.file will return the loaded file path.

JT

Please Log in to join the conversation.

More
10 months 3 weeks ago #339730 by MaHa
Replied by MaHa on topic python module
Thanks. That worked.
Before, it was unsuccessful with linuxcnc status.
Now i tested, by press the pushbutton, i can read the file by lines
 

Please Log in to join the conversation.

Time to create page: 0.218 seconds
Powered by Kunena Forum