import os import sys import time # add python path of src to sys.path src_path = os.path.join(__file__, *(['..'] * 2)) src_path = os.path.abspath(src_path) sys.path.insert(1, src_path) from src.microwave.deviceTools import bin2ply_tool if __name__ == "__main__": def help(): print("Usage: bin2ply.py [BINfolder]") print("EXAMPLE: BIN2ply.py ./manual_ply/pod1-2012-12-12-12-12-12/") exit(1) if len(sys.argv) != 2: help() try: BINfolder = os.path.abspath(str(sys.argv[1])) except Exception as e: print(e) help() bin2ply_tool(BINfolder)