added sound notification support and forward secery setting finished
This commit is contained in:
parent
23782dcb8f
commit
aea4815fbd
11 changed files with 76 additions and 42 deletions
|
@ -1,7 +1,6 @@
|
|||
"""
|
||||
Onionr - Private P2P Communication
|
||||
"""Onionr - Private P2P Communication.
|
||||
|
||||
module to get static directory and read static data files
|
||||
get static directory and read static data files
|
||||
"""
|
||||
"""
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
@ -20,9 +19,12 @@
|
|||
|
||||
from typing import Union
|
||||
import os
|
||||
|
||||
|
||||
def get_static_dir()->str:
|
||||
return os.path.dirname(os.path.realpath(__file__)) + '/../../static-data/'
|
||||
|
||||
|
||||
def read_static(file:str, ret_bin:bool=False)->Union[str, bytes]:
|
||||
static_file = get_static_dir() + file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue