We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c561f2 commit f8c66dcCopy full SHA for f8c66dc
framework/fit/python/fitframework/__init__.py
@@ -212,9 +212,9 @@ def main():
212
213
214
if __package__ == 'fitframework' and sys.argv[0].find("pytest") == -1: # 避免执行两次main
215
- if platform.system() == 'Windows':
+ if platform.system() in ('Windows', 'Darwin'): # Windows 或 macOS
216
main()
217
- else:
+ else: # Linux 及其他
218
while True:
219
main_process = Process(target=main, name='MainProcess')
220
main_process.start()
0 commit comments