and not or

This commit is contained in:
shenjack 2023-06-10 15:43:30 +08:00
parent 7cbd48909b
commit 4fd71dbe17

View File

@ -44,7 +44,7 @@ if __name__ == '__main__':
# 确认是否需要编译
# 如果包含 -y 参数 则直接编译
if ('-y' or '-n') not in sys.argv or not is_github:
if (('-y' or '-n') not in sys.argv) and (not is_github):
while (do_compile := input('Do you want to compile this file? (y/n) ')) not in ['y', 'n']:
pass
elif '-y' in sys.argv: