Example #1
0
import os
from demerio_utils.file_utils import create_new_dir

"Dir where file will be stored"
demerio_config_dir = os.path.join(os.path.expanduser("~"), ".demerio")
demerio_dir = os.path.join(os.path.expanduser("~"), "demerio")
if not os.path.exists(demerio_dir):
    create_new_dir(demerio_dir)
config_file = os.path.join(demerio_config_dir, "map.demerio")
log_file = os.path.join(demerio_config_dir, "log.demerio")

PARTS_NEEDED = 2 ## any 2 of pars can reconstruct

"Trad context : do not really know why there should be multiple for now"
trad_context = "MainWindow"

ui_dir = os.path.join(os.path.dirname(__file__), "ui")

def ui_full_path(ui_filename):
    return os.path.join(ui_dir, ui_filename)

FREQUENCY_CHECK_MS = 5000
BAR_NOTIFICATION_TIME = 2000
TIME_OUT_CALL_S = 3

IGNORE_PATTERNS = ["*.DS_Store"]
Example #2
0
 def __init__(self, credential_dir=CREDENTIAL_DIR):
     self.credential_dir = credential_dir
     if not exists(credential_dir):
         create_new_dir(credential_dir)
Example #3
0
import os
from demerio_utils.file_utils import create_new_dir

"Dir where file will be stored"
demerio_config_dir = os.path.join(os.path.expanduser("~"), ".demerio")
demerio_dir = os.path.join(os.path.expanduser("~"), "demerio")
if not os.path.exists(demerio_dir):
    create_new_dir(demerio_dir)
config_file = os.path.join(demerio_config_dir, "map.demerio")
log_file = os.path.join(demerio_config_dir, "log.demerio")

PARTS_NEEDED = 2  ## any 2 of pars can reconstruct

"Trad context : do not really know why there should be multiple for now"
trad_context = "MainWindow"

ui_dir = os.path.join(os.path.dirname(__file__), "ui")


def ui_full_path(ui_filename):
    return os.path.join(ui_dir, ui_filename)


FREQUENCY_CHECK_MS = 5000
BAR_NOTIFICATION_TIME = 2000
TIME_OUT_CALL_S = 3

IGNORE_PATTERNS = ["*.DS_Store"]
Example #4
0
 def __init__(self, credential_dir=CREDENTIAL_DIR):
     self.credential_dir = credential_dir
     if not exists(credential_dir):
         create_new_dir(credential_dir)
Example #5
0
 def __init__(self, upload_dir):
     self._upload_dir = upload_dir
     if not exists(self._upload_dir):
         create_new_dir(self._upload_dir)