-
Notifications
You must be signed in to change notification settings - Fork 0
/
commentor.py
39 lines (31 loc) · 847 Bytes
/
commentor.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
import tkinter as tk
from tkinter import filedialog as fd
import shutil
import main
root = tk.Tk()
root.withdraw()
VERSION = "0.1"
DEBUG = True
def select_file():
main.message('Select folder needs to be commented.', True)
global filepath
filepath = fd.askdirectory(title='Select Folder')
if filepath != '':
main.message(f'Folder selected: Path => {str(filepath)}')
build_project()
else:
main.error('Folder not selected.', True)
def build_project():
shutil.copy()
def run():
main.message("Addon Commentor\n")
try:
select_file()
except:
input("\n\n Press enter to continue.")
main.clear_console()
main.message("Returned to main menu. \n")
main.main()
return
input("\n\n Press enter to return main menu.")
main.return_main()