Skip to content

If the dir not exits then new one. #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 5, 2016
2 changes: 2 additions & 0 deletions new_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
input_file=os.path.join(confdir,config_file)
old_text=" Script Name : "
new_text=(" Script Name : "+output_file)
if not(os.path.exists(outputdir)):
os.mkdir(outputdir)
newscript = open(script, 'w')
input=open(input_file,'r')
today=datetime.date.today()
Expand Down