Skip to content

Commit dd72214

Browse files
committed
Merge pull request geekcomputers#1 from shengshuaijohnson/johnson's
If directory not exist then create one
2 parents c3c7c71 + 6490be0 commit dd72214

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)