/
main.py
27 lines (19 loc) · 992 Bytes
/
main.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
## Credit for Config, Dependency Installation, and Logging systems goes to AgentLoneStar007
## https://github.com/AgentLoneStar007
from functions.installDependencies import InstallDependencies
from functions.createDefaultConfig import CreateDefaultConfig
from functions.logger import setCurrentFile # Import Log as well if you wish to log anything in Main.
# See README for other things to import and use
class Main:
def __init__(self):
# Order of events:
# 1. Set file to log to (must be passed through to all functions and classes logging output)
# 2. Create the default configuration file, if not present already.
# 3. Install dependencies.
# 4. Load the configuration file.
logFile = setCurrentFile()
CreateDefaultConfig(logFile)
InstallDependencies(logFile)
# Your code here. Don't forget to pass the log file through to your classes and functions if you wish to log
# events to a file.
Main()