<reponame>fstwn/ghautokn<filename>modules/ghautoknit/Environment.py
# PYTHON STANDARD LIBRARY IMPORTS ---------------------------------------------
from __future__ import absolute_import
from os import path

# ALL LIST --------------------------------------------------------------------
__all__ = [
    "_AK_RAW_PATH_",
    "_AK_PATH_",
    "_AK_INTERFACE_"
]

# ENVIRONMENT VARIABLES -------------------------------------------------------

# PATH TO COMPILED AUTOKNIT FOLDER (WHERE INTERFACE.EXE IS LOCATED!)
_AK_RAW_PATH_ = r"C:\path\to\autoknit\dist"

# IF THERE IS NO VALID PATH PROVIDED, FALL BACK TO THE PRECOMPILED BINARY
if not path.exists(_AK_RAW_PATH_):
    _AK_RAW_PATH_ = path.normpath(path.dirname(path.realpath(__file__)) +
                                  r"\autoknit-windows-v0.1")

# MORE ENVIRONMENT VARIABLES (DON'T CHANGE THIS!) -----------------------------
_AK_PATH_ = path.normpath(_AK_RAW_PATH_)
_AK_INTERFACE_ = path.normpath(_AK_RAW_PATH_ + r"\interface")

# MAIN ------------------------------------------------------------------------
if __name__ == '__main__':
    pass

# PYTHON STANDARD LIBRARY IMPORTS ---------------------------------------------
from __future__ import absolute_import
from os import path

# ALL LIST --------------------------------------------------------------------
__all__ = [
    "_AK_RAW_PATH_",
    "_AK_PATH_",
    "_AK_INTERFACE_"
]

# ENVIRONMENT VARIABLES -------------------------------------------------------

# PATH TO COMPILED AUTOKNIT FOLDER (WHERE INTERFACE.EXE IS LOCATED!)
_AK_RAW_PATH_ = r"C:\path\to\autoknit\dist"

# IF THERE IS NO VALID PATH PROVIDED, FALL BACK TO THE PRECOMPILED BINARY
if not path.exists(_AK_RAW_PATH_):
    _AK_RAW_PATH_ = path.normpath(path.dirname(path.realpath(__file__)) +
                                  r"\autoknit-windows-v0.1")

# MORE ENVIRONMENT VARIABLES (DON'T CHANGE THIS!) -----------------------------
_AK_PATH_ = path.normpath(_AK_RAW_PATH_)
_AK_INTERFACE_ = path.normpath(_AK_RAW_PATH_ + r"\interface")

# MAIN ------------------------------------------------------------------------
if __name__ == '__main__':
    pass
# PYTHON STANDARD LIBRARY IMPORTS --------------------------------------------- # ALL LIST -------------------------------------------------------------------- # ENVIRONMENT VARIABLES ------------------------------------------------------- # PATH TO COMPILED AUTOKNIT FOLDER (WHERE INTERFACE.EXE IS LOCATED!) # IF THERE IS NO VALID PATH PROVIDED, FALL BACK TO THE PRECOMPILED BINARY # MORE ENVIRONMENT VARIABLES (DON'T CHANGE THIS!) ----------------------------- # MAIN ------------------------------------------------------------------------