Skip to content

Instantly share code, notes, and snippets.

@duartevictorino
Created May 21, 2024 09:55
Show Gist options
  • Save duartevictorino/348e82d25e5d9e4d0ed37b1df2ec0f6f to your computer and use it in GitHub Desktop.
Save duartevictorino/348e82d25e5d9e4d0ed37b1df2ec0f6f to your computer and use it in GitHub Desktop.
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