Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import pkg_resources
SILX = True
special_modules = [os.path.dirname(PyMca5.__file__),
os.path.dirname(matplotlib.__file__),
os.path.dirname(ctypes.__file__),
os.path.dirname(fisx.__file__),
os.path.dirname(hdf5plugin.__file__),
os.path.dirname(silx.__file__),
os.path.dirname(pkg_resources.__file__)]
try:
import tomogui
special_modules.append(os.path.dirname(tomogui.__file__))
import freeart
special_modules.append(os.path.dirname(freeart.__file__))
except:
pass
excludes = ["Tkinter", "tkinter",
'tcl','_tkagg', 'Tkconstants',
"scipy", "Numeric", "numarray", "PyQt5"]
try:
import IPython
if IPython.__version__.startswith('2'):
# this works with IPython 2.4.1
special_modules.append(os.path.dirname(IPython.__file__))
includes.append("colorsys")
import pygments
special_modules.append(os.path.dirname(pygments.__file__))