File name with non alphanumeric characters not handled correctly
Created by: macdroid53
Problem statement
When using File path and Read FCStd node, if the file name includes non alphanumeric characters (-, '(',')' ) file is not recognized.
If the file name includes a '-' or ')', the error (shown above the Read FCStd node):
2022-06-10 08:31:41,837 [INFO] sverchok.nodes.exchange.FCStd_read 334: FCStd read error
2022-06-10 08:31:41,837 [ERROR] sverchok.nodes.exchange.FCStd_read:337 : <class 'NameError'>
If the file name includes a '_', the error (shown in the terminal window):
File "/home/mac/.config/blender/2.93/scripts/addons/sverchok-master/nodes/exchange/FCStd_read.py", line 337, in LoadSolid
F.closeDocument(Fname)
NameError: Unknown document 'RaspPi4random_4'
location: <unknown location>:-1
Steps to reproduce
- Create a FreeCAD file with the described characters
- Attempt to specify the file in the File path node connected to a Read FCStd node.
Sverchok version
v1.1.0-alpha.2