Commit decb8120 authored by Karl Fleischmann's avatar Karl Fleischmann

Outsource constants/variables to own module

parent c488a8ac
# -*- coding: utf-8 -*-
import os
###############################################################################
# global constants
###############################################################################
USER_HOME = os.path.expanduser("~")
CACHE_FOLDER = os.path.join(str(USER_HOME),
".cache/hack_count")
CACHE_PICTURE_FOLDER = os.path.join(str(USER_HOME),
".cache/hack_count/pics")
DEFAULT_CACHE_PICTURE = os.path.join(str(USER_HOME),
".cache/hack_count/pics/default.png")
CACHE_FILE = "hack_count.json"
CACHE_PATH = os.path.join(str(CACHE_FOLDER),
str(CACHE_FILE))
###############################################################################
# end of global constants
###############################################################################
class Variables(object):
"""Use this class as a sort of struct of variables.
See https://docs.python.org/3/tutorial/classes.html#odds-and-ends
for the main idea of this... ehm... idea. :D"""
def __init__(self):
"""Create and initialize the variables used in hack_count."""
####
self.count_changed = True
self.item = ('org.freedesktop.Notifications')
self.path = ('/org/freedesktop/Notifications')
self.interface = ('org.freedesktop.Notifications')
self.icon = ''
self.array = ''
self.hint = ''
# Use seconds x 1000
self.time = 10000
self.app_name = ('Hack-Space User Count')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment