mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +00:00
automated_calendar
This script is an agenda for lazy people, I mean, for saving time 😂😂😂. Just run it and inside your selected folder you will find 12 other folders named after each month of the year, so you can archive your documents in a more organized way.
This commit is contained in:
parent
5e9d1f4985
commit
a003a873b2
20
automated_calendar/automated_calendar.py
Normal file
20
automated_calendar/automated_calendar.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
'''
|
||||||
|
THIS CODE CREATES FOLDERS FOR EACH FY OF OUR COMPANY, WHERE WE COULD
|
||||||
|
FIND 12 OTHER FOLDERS NAMED AFTER EACH MONTH OF THE YEAR.
|
||||||
|
'''
|
||||||
|
|
||||||
|
#Import modules and libraries we'll use
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
#Create the folders where we'll store our automated calendar
|
||||||
|
months =['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||||
|
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
||||||
|
|
||||||
|
for i,month in enumerate(months):
|
||||||
|
Path(f'Year1/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
|
||||||
|
Path(f'Year2/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
|
||||||
|
Path(f'Year3/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
|
||||||
|
Path(f'Year4/{i+1}.{month}').mkdir(parents=True,exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
1
automated_calendar/requirements.txt
Normal file
1
automated_calendar/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pkg-resources==0.0.0
|
Loading…
Reference in New Issue
Block a user