########################################################################### # # Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file test_can.py # # @author (last) Peter Lucia # @date (last) 12-Aug-2020 # @author (original) Peter Lucia # @date (original) 12-Aug-2020 # ############################################################################ import sys sys.path.append("..") from dialin.utils.base import setup_virtual_can_interface, setup_real_can_interface resp = input("Setup virtual can interface? (y/n): ") if resp.lower() == "y": setup_virtual_can_interface() else: resp = input("Setup real can interface? (y,n): ") if resp.lower() == "y": setup_real_can_interface()