コード例 #1
0
'''
if __name__ != '__main__':
    from boostnode.aspect.signature import add_check as add_signature_check
    from boostnode.extension.native import Module

# # python3.5
# #     pass
    builtins.reload(sys)
    sys.setdefaultencoding(ENCODING)
# #
    try:
        '''
            Add signature checking for all functions and methods with joint \
            points in this package.
        '''
        add_signature_check(point_cut='%s\..*' % Module.get_package_name(
            frame=inspect.currentframe()))
    except WindowsError as exception:
# # python3.5
# #         logging.error(
# #             'Running subprocesses on windows without being administrator '
# #             "isn't possible. %s: %s", exception.__class__.__name__,
# #             builtins.str(exception))
        logging.error(
            'Running subprocesses on windows without being administrator '
            "isn't possible. %s: %s", exception.__class__.__name__,
            convert_to_unicode(exception))
# #
        sys.exit(1)

# endregion