Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use IF statement to determine pre-existing data folder #514

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

scheckley
Copy link

…-existing data directory

Description

This parameter doesn't seem to be used in the rest of the script:

KH_APP_DATA_EXISTS = KH_APP_DATA_DIR.exists()

Therefore, amended the pre-existing directory check with an IF statement to perform the check:

if not KH_APP_DATA_DIR.exists():
    KH_APP_DATA_DIR.mkdir(parents=True, exist_ok=True)

Type of change

  • New features (non-breaking change).
  • [ x ] Bug fix (non-breaking change).
  • Breaking change (fix or feature that would cause existing functionality not to work as expected).

@scheckley scheckley changed the title use IF statement for determien pre-existing data folder use IF statement to determine pre-existing data folder Nov 21, 2024
@scheckley scheckley closed this Nov 21, 2024
@scheckley scheckley reopened this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant