def get_dll_file_path(self): if platform.architecture()[0] == '64bit': dll_file_path = get_current_module_path(__file__, "../../../lib/camera/x64/StCamD.dll") logging.debug("64 bit platform found") elif platform.architecture()[0] == '32bit': dll_file_path = get_current_module_path(__file__, "../../../lib/camera/x86/StCamD.dll") logging.debug("32 bit platform found") else: message = "Cannot determine platform architecture: 32-bit or 64-bit." logging.error(message) raise RuntimeError(message) logging.debug("dll_file_path: {:s}".format(dll_file_path)) return dll_file_path
def test_write_setting_file(self): """ Test the method `read_setting_file`. """ setting_file_path_ref = get_current_module_path( __file__, "../../../test_data/read_setting_file.cfg") if not os.path.isfile(setting_file_path_ref): raise SkipTest setting_file_path = get_current_module_path( __file__, "../../../test_data/write_setting_file.cfg") self.sentech_api.write_setting_file(setting_file_path) # self.fail("Test if the testcase is working.") self.assert_(True)
def get_include_file_path(self): include_file_path = get_current_module_path(__file__, "../../../include/camera/StCamD_stripped.h") logging.info("include_file_path: {:s}".format(include_file_path)) return include_file_path