Skip to content

Commit 6490be0

Browse files
committed
If directory not exist then create one
To avoid the error that there is no "Development" dir in script
1 parent ba9a675 commit 6490be0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

new_script.py

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
input_file=os.path.join(confdir,config_file)
5353
old_text=" Script Name : "
5454
new_text=(" Script Name : "+output_file)
55+
if not(os.path.exists(outputdir)):
56+
os.mkdir(outputdir)
5557
newscript = open(script, 'w')
5658
input=open(input_file,'r')
5759
today=datetime.date.today()

0 commit comments

Comments
 (0)