mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Forward dream.py to invoke.py using the same interpreter, add deprecation warning
This commit is contained in:
parent
94bad8555a
commit
82b7c118c4
@ -1,12 +1,10 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# Copyright (c) 2022 Lincoln D. Stein (https://github.com/lstein)
|
# Copyright (c) 2022 Lincoln D. Stein (https://github.com/lstein)
|
||||||
|
|
||||||
import sys
|
import warnings
|
||||||
import os.path
|
import invoke
|
||||||
|
|
||||||
script_path = sys.argv[0]
|
|
||||||
script_args = sys.argv[1:]
|
|
||||||
script_dir,script_name = os.path.split(script_path)
|
|
||||||
script_dest = os.path.join(script_dir,'invoke.py')
|
|
||||||
os.execlp('python3','python3',script_dest,*script_args)
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
warnings.warn("dream.py is deprecated, please run invoke.py instead",
|
||||||
|
DeprecationWarning)
|
||||||
|
invoke.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user