mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for env
This commit is contained in:
@@ -915,7 +915,10 @@ def general_startup(override_args=None):
|
||||
else:
|
||||
if arg in os.environ:
|
||||
if type(getattr(args, arg)) == bool:
|
||||
if bool(os.environ[arg]):
|
||||
setattr(args, arg, bool(os.environ[arg]))
|
||||
else:
|
||||
delattr(args, arg)
|
||||
else:
|
||||
setattr(args, arg, os.environ[arg])
|
||||
|
||||
|
Reference in New Issue
Block a user