Skip to content

Commit a25dbcc

Browse files
FredGoosurpercodehang
authored andcommitted
[fix]stop respawning on macOS, align with Windows behavior (ModelEngine-Group#209)
(cherry picked from commit f4602b6)
1 parent 9109d14 commit a25dbcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/fit/python/fitframework/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ def main():
212212

213213

214214
if __package__ == 'fitframework' and sys.argv[0].find("pytest") == -1: # 避免执行两次main
215-
if platform.system() == 'Windows':
215+
if platform.system() in ('Windows', 'Darwin'): # Windows 或 macOS
216216
main()
217-
else:
217+
else: # Linux 及其他
218218
while True:
219219
main_process = Process(target=main, name='MainProcess')
220220
main_process.start()

0 commit comments

Comments
 (0)