Multiple '.' not allowed in LinuxCNC
- daiman444
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 44
- Thank you received: 8
			
	
						26 Nov 2022 13:21				#257680
		by daiman444
	
	
		
			
	
			
			 		
													
	
				Multiple '.' not allowed in LinuxCNC was created by daiman444			
			
				hi all. the question is more to qtplasmac but I checked the same in qtaxis for linuxcnc2.9:
when opening a file whose name contains two dots, for example "001. Some_cut.ngc", the file is not loaded and gives a warning: "Multiple '.' not allowed in LinuxCNC". in qtplasmac_handler.py i found:     
in interfaces on qt in linuxcnc 2.8, I checked the opening of files with the same name "001. Some_cut.ngc" and everything opens there without problems.
is this a bug or feature for linuxcnc 2.9?
					when opening a file whose name contains two dots, for example "001. Some_cut.ngc", the file is not loaded and gives a warning: "Multiple '.' not allowed in LinuxCNC". in qtplasmac_handler.py i found:
    def file_loaded(self, obj, filename):
         if os.path.basename(filename).count('.') > 1:
             self.lastLoadedProgram = ' '
             returnin interfaces on qt in linuxcnc 2.8, I checked the opening of files with the same name "001. Some_cut.ngc" and everything opens there without problems.
is this a bug or feature for linuxcnc 2.9?
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						26 Nov 2022 21:07				#257699
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Multiple '.' not allowed in LinuxCNC			
			
				It was a feature, but I don't remember why.
I tried to find the discussion on github but have failed.
					I tried to find the discussion on github but have failed.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						26 Nov 2022 21:17				#257701
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Multiple '.' not allowed in LinuxCNC			
			
				Here is the discussion:
github.com/LinuxCNC/linuxcnc/pull/1082
					github.com/LinuxCNC/linuxcnc/pull/1082
		The following user(s) said Thank You: daiman444 	
			Please Log in or Create an account to join the conversation.
- daiman444
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 44
- Thank you received: 8
			
	
						26 Nov 2022 21:39				#257704
		by daiman444
	
	
		
			
	
			
			 		
													
	
				Replied by daiman444 on topic Multiple '.' not allowed in LinuxCNC			
			
				thanks for the info mate.  this feature is like a big crutch like many other things, alas ((			
					Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						26 Nov 2022 21:55				#257705
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Multiple '.' not allowed in LinuxCNC			
			
				You could remove that check from Qtplasmac's handler file. It's also coded in one other file but I'm not sure if qtplasmac uses it.
I'll see if I can find out the specific problem.
Is there any other reason to require multiple . other then preference?
					I'll see if I can find out the specific problem.
Is there any other reason to require multiple . other then preference?
Please Log in or Create an account to join the conversation.
- phillc54
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 5711
- Thank you received: 2093
			
	
						27 Nov 2022 06:01				#257721
		by phillc54
	
	
		
			
	
	
			 		
													
	
				Replied by phillc54 on topic Multiple '.' not allowed in LinuxCNC			
			
				I had a bit of a play with this by removing the inhibits from qtplasmac_handler.py and qt_action.py.
I also changed name, ext = path.rsplit('.') in the qt_action save function to name, ext = path.rsplit('.', 1) which then enabled saving with multiple periods.
After this I could load, run and save files with multiple and also multiple consecutive periods without any obvious errors. This was only tested on a sim config.
					I also changed name, ext = path.rsplit('.') in the qt_action save function to name, ext = path.rsplit('.', 1) which then enabled saving with multiple periods.
After this I could load, run and save files with multiple and also multiple consecutive periods without any obvious errors. This was only tested on a sim config.
		The following user(s) said Thank You: daiman444 	
			Please Log in or Create an account to join the conversation.
		Moderators: cmorley	
		Time to create page: 0.078 seconds	
