def get_user_config_file(): if sys.platform == 'win32': appdata_dir = win32utils.get_appdata_dir() config_file = os.path.join(appdata_dir, 'siptrack.conf') else: config_file = os.path.expanduser('~/.siptrackrc') return config_file
def get_default_config_files(): if sys.platform == 'win32': appdata_dir = win32utils.get_appdata_dir() config_file = os.path.join(appdata_dir, 'siptrack.conf') files = [config_file] else: files = ['/etc/siptrack.conf', os.path.expanduser('~/.siptrackrc')] return files
def get_default_session_filename(): session_filename = None if sys.platform == 'win32': appdata_dir = win32utils.get_appdata_dir() if appdata_dir: session_filename = os.path.join(appdata_dir, '.siptrack.session') else: session_filename = os.path.expanduser('~/.siptrack.session') return session_filename