python module

More
15 Nov 2025 12:04 #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 or Create an account to join the conversation.

More
18 Nov 2025 15:31 #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 or Create an account to join the conversation.

More
03 Dec 2025 19:05 #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 or Create an account to join the conversation.

More
04 Dec 2025 10:57 #339720 by JT
Replied by JT on topic python module
parent.status.file will return the loaded file path.

JT
The following user(s) said Thank You: MaHa

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

More
04 Dec 2025 14:51 #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 or Create an account to join the conversation.

Moderators: JT
Time to create page: 0.071 seconds
Powered by Kunena Forum