-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
47 lines (30 loc) · 953 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os , datetime
ProjectName = input('Enter Project Name := ')
In_FolderList = ['Maya','Houdini','Nuke','AfterEffect','Premier','PhotoShop','Textuer','Alembic','Scripts']
usr = os.getlogin()
crntPath = os.getcwd()
md = '\data.md'
md_data = f'{ProjectName} Project is created by {usr} \nCreated Time :- {datetime.datetime.now()} \n '
direc = crntPath + f'\{ProjectName}'
run = 0
for folder in os.listdir(crntPath):
if folder == ProjectName:
run = 0
else:
run = 1
if run == 1:
os.mkdir(direc)
print(f'{ProjectName} Folder Created...')
else:
print('Folder alredy Exits (.^.) ')
def CreateMultiFolder():
if run == 1:
for folder in In_FolderList:
os.makedirs(direc + f'\\{folder}')
print(f'{folder}' "Created")
with open(direc+md,"w") as mdw:
mdw.write(md_data)
print("Created Md File")
else:
pass
CreateMultiFolder()