# - * -编码:utf - 8 - * - # 2015 - 2020 - Ro版权boDK Inc. - //m.sinclairbody.com/ # # This file loads the compiled version of the RoboDK post processor for: # KUKA KRC2 robot controllers # # More information about RoboDK Post Processors and Offline Programming: # //m.sinclairbody.com/help#PostProcessor # //m.sinclairbody.com/doc/en/PythonAPI/postprocessor.html # ---------------------------------------------------- import sys import os # Detect Python version and post processor print("Using Python version: " + str(sys.version_info)) path_app = os.path.dirname(__file__).replace(os.sep,"/") print("RoboDK Post Processor: " + path_app) # Check if the post is compatible with the Python version version_str = str(sys.version_info[0]) + str(sys.version_info[1]) path_library = path_app + '/v' + version_str if not os.path.isdir(path_library): raise Exception("Post Processor not found. Make sure you are using a supported Python version: " + path_library) # Load the post processor exec("from v" + version_str + ".KUKA_KRC2 import *") if __name__== "__main__": test_post()