File size: 757 Bytes
0cfb077
 
 
 
fd480f2
cc61cf6
fd480f2
 
 
 
 
4f283a0
e901dd2
fd480f2
 
cc61cf6
fd480f2
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os


class SheamiConfig:
    base_dir = os.path.dirname(os.path.abspath(__file__))  # project root

    _output_dir = os.path.join(base_dir, "output")
    data_dir = os.path.join(base_dir, "data")
    logo_path = os.path.join(base_dir, "assets", "logo.jpg")
    logo_small_path = os.path.join(base_dir, "assets", "logo-small.jpg")
    favicon_path = os.path.join(base_dir, "assets", "favicon.jpg")
    user_icon_path = os.path.join(base_dir, "assets", "user.png")
    banner_path = os.path.join(base_dir, "assets", "sheami_features_banner.png")

    @staticmethod
    def get_output_dir(thread_id: str):
        path = os.path.join(SheamiConfig._output_dir, thread_id)
        os.makedirs(path, exist_ok=True)  # ensure it exists
        return path