|
- from datetime import date
- from os import path
-
- def createfile():
- filenames = ["1Start","2Middle","3End"]
- todaystr = date.today().strftime("%y%m%d")
- if date.today().weekday() < 5:
- for filename in filenames:
- try:
- with open("journal/"+todaystr+"_"+filename,"x") as fh:
- pass
- except:
- pass
-
- if __name__ == '__main__':
- createfile()
|