Initial other project types support

This commit is contained in:
Евгений Титаренко 2023-01-09 21:45:07 +03:00
parent 9dbc2b3666
commit 17d02bd27c
2 changed files with 16 additions and 4 deletions

View file

@ -36,9 +36,9 @@ def is_path_exist(path:str):
def is_standart_dir_structure():
return not os.path.exists(os.path.join(directory, "home"))
def install(filename):
def install(filename, subdir:str):
shutil.copy2(os.path.join(cache_dir,filename),\
os.path.join(mc_dir,"mods",filename))
os.path.join(mc_dir,subdir,filename))
mc_dir = __get_mc_dir()
cache_dir = __get_cache_dir()