The default location of the .zowe folder is ~/.zowe as used here. In Zowe CLI and Zowe Explorer, it can be overridden with the ZOWE_CLI_HOME environment variable to point to another directory.
We may want to check for the existence of os.environ["ZOWE_CLI_HOME"], and if it is defined then store the logs directory inside it. This could be addressed in a separate issue 🙂
Originally posted by @t1m0thyj in #268 (comment)