mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 23:04:51 +00:00
Turn hardcoded plugins dir into a constant
This commit is contained in:
parent
dfb841baa9
commit
0b79f96b4f
2 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ class Client(Methods, BaseClient):
|
||||||
workers: int = 4,
|
workers: int = 4,
|
||||||
workdir: str = ".",
|
workdir: str = ".",
|
||||||
config_file: str = "./config.ini",
|
config_file: str = "./config.ini",
|
||||||
plugins_dir: str = "./plugins"):
|
plugins_dir: str = BaseClient.PLUGINS_DIR):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self.session_name = session_name
|
self.session_name = session_name
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ class BaseClient:
|
||||||
UPDATES_WORKERS = 1
|
UPDATES_WORKERS = 1
|
||||||
DOWNLOAD_WORKERS = 1
|
DOWNLOAD_WORKERS = 1
|
||||||
OFFLINE_SLEEP = 300
|
OFFLINE_SLEEP = 300
|
||||||
|
PLUGINS_DIR = "./plugins"
|
||||||
|
|
||||||
MEDIA_TYPE_ID = {
|
MEDIA_TYPE_ID = {
|
||||||
0: "thumbnail",
|
0: "thumbnail",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue