import inspect import signal, sys, os if sys.version_info[0] == 2: import __builtin__ as builtins else: import builtins # Overriding some functions for the Dev environment. if XDHqSHRD.isDev(): if "openpyxl" in sys.modules: defaultXLFunction = sys.modules['openpyxl'].load_workbook sys.modules[ 'openpyxl'].load_workbook = lambda filename, **kwargs: defaultXLFunction( XDHq.get_asset_filename(filename), **kwargs) defaultBuiltinsFunction = builtins.open builtins.open = lambda filename, *args, **kwargs: defaultBuiltinsFunction( XDHq.get_asset_filename(filename), *args, **kwargs) def signal_handler(sig, frame): sys.exit(0) signal.signal(signal.SIGINT, signal_handler) def create_XML(root_tag): return XDHq.XML(root_tag)
import XDHq, XDHqSHRD from threading import Thread, Lock import inspect, time, socket, signal, sys, os from XDHq import set_supplier, get_app_url, l if sys.version_info[0] == 2: import __builtin__ as builtins else: import builtins # Overriding some functions for the Dev environment. if XDHqSHRD.isDev(): if "openpyxl" in sys.modules : defaultXLFunction = sys.modules['openpyxl'].load_workbook sys.modules['openpyxl'].load_workbook = lambda filename, **kwargs: defaultXLFunction(XDHq.get_asset_filename(filename), **kwargs) defaultBuiltinsFunction = builtins.open builtins.open = lambda filename, *args, **kwargs: defaultBuiltinsFunction(XDHq.get_asset_filename(filename), *args, **kwargs) def signal_handler(sig, frame): sys.exit(0) signal.signal(signal.SIGINT, signal_handler) def create_XML(root_tag): return XDHq.XML(root_tag) createXML = create_XML