added sound notification support and forward secery setting finished

This commit is contained in:
Kevin Froman 2020-02-17 06:13:57 -06:00
parent 23782dcb8f
commit aea4815fbd
11 changed files with 76 additions and 42 deletions

View file

@ -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