zowe / zowe/zowe-client-python-sdk

[core] Support ZOWE_CLI_HOME directory for log file location

Open
#271 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority-low
Dominant language
Python
Stars
44
Forks
38
Avg merge
1d 3h
Merged PRs (30d)
1

Description

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 https://github.com/zowe/zowe-client-python-sdk/pull/268#discussion_r1618708335

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the code that chooses the default .zowe directory and creates or stores the logs directory, then inspect how environment variables are handled. Done means ZOWE_CLI_HOME is used for logs when defined while the existing default remains unchanged otherwise.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.