File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2424# threading module isn't supported by FL's interpreter but _thread does
2525# However, using _thread makes FL crash eventually at launch on Windows and it isn't compatible with the macOS Python interpreter
2626# Using _dummy_thread instead
27- import lib ._dummy_thread as _thread
27+ import sys
28+
29+ if sys .platform == "win32" :
30+ print ("Windows OS detected. Imported _thread module." )
31+ import _thread
32+
33+ if sys .platform == "darwin" :
34+ print ("macOS detected. Imported _dummy_thread module." )
35+ import lib ._dummy_thread as _thread
2836
2937######################################################################################################################
3038# User-editable constants for script customization
You can’t perform that action at this time.
0 commit comments