mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-02 18:43:42 +08:00
读取环境变量来自动执行
This commit is contained in:
parent
ac8d92bc54
commit
92be7f4a9d
@ -42,7 +42,7 @@ def main_multi(autorun: bool):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) >= 2 and sys.argv[1] == "autorun":
|
||||
if (len(sys.argv) >= 2 and sys.argv[1] == "autorun") or os.getenv("AutoMihoyoBBS_autorun") == "1":
|
||||
autorun = True
|
||||
else:
|
||||
autorun = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user