Skip to content

Conversation

@Kittensx
Copy link

Hi Civitai team,

This PR replaces the dependency on launch.run() with a local run() function to improve compatibility with forks of SD-WebUI such as Forge and other secure environments that disable or restrict access to internal A1111 modules (e.g. with --disable-extension-access).

Changes:
Replaces from launch import run with a standalone function that wraps subprocess.check_call

Maintains the same output behavior (optional desc and errdesc handling)

Prevents AssertionError: extension access disabled because of command line flags on Forge-based installs

Why this is helpful:
Allows the extension to function on forks where launch.py is inaccessible or restricted

Avoids breaking startup due to missing internal methods

Keeps the extension self-contained and more portable

Thanks for your awesome work on Civitai Link — happy to support compatibility with the broader SD community!

Best,
Kittensx

doesn't require an absetn from launch when running from the extensions folder. Run as is might be referencing A1111's launch.py which is located in the main folder. This provides a workaround and functions without needing to copy and paste a file just to run your program.
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