Skip to content

Conversation

@jacobmartinez3d
Copy link

On Windows any paths that wind up containing "\n" will result in a broken path with a newline in the middle.

example:

C:\\apps\nuke\gizmos\...

Since Nuke already respects "/" as a separator on all OS's, this commit enforces this.

On Windows any paths that wind up containing "\n" will result in a broken path with a newline in the middle. Since Nuke already respects "/" as a separater on all OS's, this commit enforces this.
@serjanbiogenic
Copy link

Even with the suggested update to the cpode, the toolkit doesn't launch for me on Nuke 13 / Windows 10

"File "C:/Users/Username/.nuke/NukeSurvivalToolkit/menu.py", line 18, in
import NST_helper
ValueError: source code string cannot contain null bytes"

@alfrhani
Copy link

This message appears when I open the program and then closes.

"C:/Users/USER/.nuke/init.py : error interpreting this plugin"

please help.

@rfletchr
Copy link

rfletchr commented Dec 1, 2023

\n should never ever be part of a path. If that is there then something is seriously wrong.

If you want to ensure a path is correctly formed for your os use os.path.abspath
https://docs.python.org/3/library/os.path.html#os.path.abspath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants