Use os.path.join
shorter
@@ -8,7 +8,7 @@ from NodeGraphQt import (NodeGraph,
update_nodes_by_down,
setup_context_menu)
from example_nodes import Nodes
-from os.path import sep
+from os.path import join
if __name__ == '__main__':
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
@@ -47,7 +47,7 @@ if __name__ == '__main__':
[graph.register_node(n) for n in Nodes]
# load preset session
- graph.load_session('example_nodes'+sep+'networks'+sep+'example.nodes')
+ graph.load_session(join('example_nodes', 'networks', 'example.nodes'))
# update nodes
update_nodes_by_down(graph.all_nodes())
