Skip to content

Commit bd0168b

Browse files
authored
Use proper path separators
This makes the script runnable under Linux/macOS, preventing an OSError
1 parent 7319ed3 commit bd0168b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example_math_nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
update_nodes_by_down,
99
setup_context_menu)
1010
from example_nodes import Nodes
11+
from os.path import sep
1112

1213
if __name__ == '__main__':
1314
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
@@ -46,7 +47,7 @@ def show_nodes_list(node):
4647
[graph.register_node(n) for n in Nodes]
4748

4849
# load preset session
49-
graph.load_session(r'example_nodes\networks\example.nodes')
50+
graph.load_session('example_nodes'+sep+'networks'+sep+'example.nodes')
5051

5152
# update nodes
5253
update_nodes_by_down(graph.all_nodes())

0 commit comments

Comments
 (0)