Created
May 21, 2024 09:55
-
-
Save duartevictorino/348e82d25e5d9e4d0ed37b1df2ec0f6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pprint | |
def newproject(): | |
#base = os.makedirs("C:/test/CreativeLab/") | |
project = input("Enter Project Name: ") | |
#project = project_input | |
print(project) | |
source = "C:/test/CreativeLab/" | |
strut = {'Admin':('Contracts','ReceivedFromClient'),'Drawings':('CAD','Elevations','Plans')} | |
pprint.pprint(strut) | |
new_project_path = os.mkdir(os.path.join(source, project)) | |
for key,val in strut.items(): | |
new_dir = f"{key}/{val}" | |
print(new_dir) | |
#strut_path = os.path.join(new_project_path, os.mkdir(new_dir)) | |
#print(strut_path) | |
#print(new_project_path) | |
newproject() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment