mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Logging of environmental variables over-riding command line arguments
This commit is contained in:
@@ -1405,6 +1405,7 @@ def general_startup(override_args=None):
|
||||
args = parser.parse_args(shlex.split(override_args))
|
||||
elif(os.environ.get("KOBOLDAI_ARGS") is not None):
|
||||
import shlex
|
||||
logger.info("Using environmental variables instead of command arguments: {}".format(os.environ["KOBOLDAI_ARGS"]))
|
||||
args = parser.parse_args(shlex.split(os.environ["KOBOLDAI_ARGS"]))
|
||||
else:
|
||||
args = parser.parse_args()
|
||||
|
Reference in New Issue
Block a user