Skip to content

Commit 0e1e698

Browse files
fix output_folder creation in IEC notebook
1 parent 7545d8e commit 0e1e698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials_and_tools/tutorials_and_tools/Tools - Module Standoff for IEC TS 63126.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,11 @@
493493
"\n",
494494
"output_folder = os.path.join(os.path.dirname(os.path.dirname(os.getcwd())), 'TEMP', 'results')\n",
495495
"try:\n",
496-
" os.mkdir(output_folder)\n",
496+
" os.makedirs(output_folder)\n",
497497
"except OSError as error:\n",
498498
" print(error)\n",
499499
"\n",
500-
"plt.savefig(output_folder+'\\Standoff_Scan.png', bbox_inches='tight') #Creates an image file of the standoff plot\n",
500+
"plt.savefig(os.path.join(output_folder, 'Standoff_Scan.png'), bbox_inches='tight') #Creates an image file of the standoff plot\n",
501501
"plt.show()"
502502
]
503503
},

0 commit comments

Comments
 (0)