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

Ensure custom paths are used during startup #5794

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

webfiltered
Copy link
Contributor

Current:

  • User dir from folder_paths is accessed during class instantiation of UserManagement (via PromptServer)
  • If in a protected folder (e.g. Program Files), this causes access denied errors pre-startup

Proposed:

  • Configure folder_paths from args & yaml earlier in the main process

Unresolved:

  • If there is no input dir in the same location as main.py, an attempt to create it will still be made during folder_paths import

Edits welcome!

Normal paths are accessed during class instantiation.  Setting folder paths from arguments early in the process prevents default paths from being created.

If "input" dir is not a sibling of main.py, an attempt to create it will still be made when folder_paths is imported.
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