-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDiscordEasyCloner.py
39 lines (28 loc) · 1.06 KB
/
DiscordEasyCloner.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 os
from pypulse import Window, Aplication
from pypulse.Template import Template
# Specifying application Route
Aplication.Vars.APLICATION_PATH = os.path.dirname(os.path.abspath(__file__))
# Configuring applications
# If you create a new application, make sure to include it here.
APPLICATIONS = ["baseapp"]
# Application window settings
APP_SETTINGS = {
"title": "Discord Easy Cloner",
"debug": False,
"debug_file_name": "debug.log",
"window_size_x": 1270,
"window_size_y": 720,
"titlebar_no_button_maximize": True,
"icon_path": os.path.join(Aplication.Vars.APLICATION_PATH, "window_logo.ico"),
}
# Defining the locations for templates and static files.
Template.TEMPLATE_PATH = os.path.join(Aplication.Vars.APLICATION_PATH, "templates")
Template.STATIC_PATH = os.path.join(Aplication.Vars.APLICATION_PATH, "static")
# some app staff
open(f"{Aplication.Vars.APLICATION_PATH}\\static\\info.log", "w")
# setting apps
for x in APPLICATIONS:
Aplication.SetAplication(x)
# Initializing window
browser = Window.LoadBrowser(**APP_SETTINGS)