Refactor folder creation logic and add AVP and BPE folders when creating a new project
This commit is contained in:
parent
909fed29d4
commit
e19076efeb
1 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
# Todo:
|
||||||
|
# - Make an AVP folder in the current directory whe creating a new project
|
||||||
|
# - Make a BPE folder in the current directory whe creating a new project
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
@ -75,6 +81,14 @@ def createNewProject():
|
||||||
with open(destination_file, 'wb') as dst_file:
|
with open(destination_file, 'wb') as dst_file:
|
||||||
dst_file.write(src_file.read())
|
dst_file.write(src_file.read())
|
||||||
pause_debug(f"File copied to new folder: {destination_file}")
|
pause_debug(f"File copied to new folder: {destination_file}")
|
||||||
|
|
||||||
|
# Create the AVP & BPE folders
|
||||||
|
avp_folder_path = os.path.join(new_folder_path, "AVP")
|
||||||
|
bpe_folder_path = os.path.join(new_folder_path, "BPE")
|
||||||
|
print(f"Creating AVP and BPE folders in {new_folder_name}")
|
||||||
|
os.makedirs(avp_folder_path, exist_ok=True)
|
||||||
|
os.makedirs(bpe_folder_path, exist_ok=True)
|
||||||
|
pause_debug(f"AVP and BPE folders created in {new_folder_name}")
|
||||||
|
|
||||||
def createNewAVP():
|
def createNewAVP():
|
||||||
# Creating AVP folders
|
# Creating AVP folders
|
Loading…
Add table
Add a link
Reference in a new issue