Hello,
I’m trying to run a python script using slicer
I tried
>>> C:\Users\matte\AppData\Local\slicer.org\Slicer 5.6.0\Slicer.exe --python-script "C:\Users\matte\Documents\Matteo\script\hello_world.py"
File "<console>", line 1
C:\Users\matte\AppData\Local\slicer.org\Slicer 5.6.0\Slicer.exe --python-script "C:\Users\matte\Documents\Matteo\script\hello_world.py"
^
SyntaxError: unexpected character after line continuation character
>>> "C:\Users\matte\AppData\Local\slicer.org\Slicer 5.6.0\Slicer.exe"--python-script "C:\Users\matte\Documents\Matteo\script\hello_world.py"
File "<console>", line 1
"C:\Users\matte\AppData\Local\slicer.org\Slicer 5.6.0\Slicer.exe"--python-script "C:\Users\matte\Documents\Matteo\script\hello_world.py"
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
I read Run python script from command line not working without finding a solution
I’m familiar with coding but I’m new to coding using slicer, if you have any ressources that I could use, I would be very grateful