python module
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 475
- Thank you received: 199
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.
- JT
-
- Offline
- Administrator
-
Less
More
- Posts: 1041
- Thank you received: 541
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
JT
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 475
- Thank you received: 199
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.
- JT
-
- Offline
- Administrator
-
Less
More
- Posts: 1041
- Thank you received: 541
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
JT
The following user(s) said Thank You: MaHa
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 475
- Thank you received: 199
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
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.054 seconds