Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/physics/xrf/ElementsInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
import sys
import logging
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
from PyMca5.PyMcaGui import PyMcaQt as qt
from PyMca5.PyMcaPhysics.xrf import ElementHtml
from PyMca5.PyMcaPhysics.xrf import Elements
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
import sys
import logging
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
from PyMca5.PyMcaGui import PyMcaQt as qt
from PyMca5.PyMcaPhysics import Elements
from PyMca5.PyMcaGui.plotting import PyMca_Icons
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/pymca/EdfFileSimpleViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
import sys
import logging
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
from PyMca5.PyMcaGui import PyMcaQt as qt

QTVERSION = qt.qVersion()
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/pymca/Mca2Edf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
import os
import numpy
import time
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
from PyMca5.PyMcaGui import PyMcaQt as qt
QTVERSION = qt.qVersion()
if QTVERSION >= '4.0.0':
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/pymca/PyMcaBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
import atexit
import logging
import traceback
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
from glob import glob
from contextlib import contextmanager
try:
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/pymca/PyMcaMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
import sys, getopt
import traceback
import logging
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
if sys.platform == 'win32':
import ctypes
from ctypes.wintypes import MAX_PATH
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/pymca/PyMcaPostBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
import sys
import os
import logging
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
_logger = logging.getLogger(__name__)
if __name__ == "__main__":
# We are going to read. Disable file locking.
Expand Down
8 changes: 8 additions & 0 deletions src/PyMca5/PyMcaGui/pymca/QStackWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
import numpy
import weakref
import logging
if __name__== '__main__':
# avoid issues if some module or dependency tries to use multiprocessing in frozen binaries
if getattr(sys, "frozen", False):
try:
import multiprocessing
multiprocessing.freeze_support()
except Exception:
pass
_logger = logging.getLogger(__name__)

if __name__ == "__main__":
Expand Down
Loading