# Path: argos/info.py
# ORGANIZATION_NAME = "titusjan"
# 
# SCRIPT_NAME = "argos"


import logging
import os.path
import platform
from argos.info import ORGANIZATION_NAME, SCRIPT_NAME
def baseLocalDataLocation():
    r""" Gets the base configuration directory (for all applications of the user).

        The config directory is platform dependent (see the Qt documentation for baseDataLocation).
        On Windows this will be something like:
            C:\Users\<user>\AppData\Local\

        See the module doc string at the top for details.
    """
    # Same as QtCore.QStandardPaths.AppConfigLocation, but without having to import Qt
    sysName = platform.system()

    if sysName == "Darwin":
        cfgDir = os.path.join(homeDirectory(), 'Library', 'Application Support')
    elif sysName == "Linux":
        cfgDir = os.path.join(homeDirectory(), '.local', 'share')
    elif sysName == "Windows":
        cfgDir = os.environ.get("APPLOCALDATA2", os.path.join(homeDirectory(), 'AppData', 'Local'))
    else:
        raise AssertionError("Unknown Operating System: {}".format(sysName))

    assert cfgDir, "No baseConfigLocation found."
    return normRealPath(cfgDir)


def argosLocalDataDirectory():
    r""" Returns a directory where Argos can store files locally (not roaming).

        This directory is platform dependent. (See the module doc string at the top).
    """

# Path: argos/info.py
# ORGANIZATION_NAME = "titusjan"
# 
# SCRIPT_NAME = "argos"


# Path: argos/utils/dirs.py
import logging
import os.path
import platform
from argos.info import ORGANIZATION_NAME, SCRIPT_NAME

def baseLocalDataLocation():
    r""" Gets the base configuration directory (for all applications of the user).

        The config directory is platform dependent (see the Qt documentation for baseDataLocation).
        On Windows this will be something like:
            C:\Users\<user>\AppData\Local\

        See the module doc string at the top for details.
    """
    # Same as QtCore.QStandardPaths.AppConfigLocation, but without having to import Qt
    sysName = platform.system()

    if sysName == "Darwin":
        cfgDir = os.path.join(homeDirectory(), 'Library', 'Application Support')
    elif sysName == "Linux":
        cfgDir = os.path.join(homeDirectory(), '.local', 'share')
    elif sysName == "Windows":
        cfgDir = os.environ.get("APPLOCALDATA2", os.path.join(homeDirectory(), 'AppData', 'Local'))
    else:
        raise AssertionError("Unknown Operating System: {}".format(sysName))

    assert cfgDir, "No baseConfigLocation found."
    return normRealPath(cfgDir)


def argosLocalDataDirectory():
    r""" Returns a directory where Argos can store files locally (not roaming).

        This directory is platform dependent. (See the module doc string at the top).
    """

    return os.path.join(baseLocalDataLocation(), ORGANIZATION_NAME, SCRIPT_NAME)