def pid(self): """Last known pid for this external process spawned for this uuid.""" return utils.get_value_from_file(self.get_pid_file_name(), int)
help="IP address of the database", default="161.53.18.12", type=str) parser.add_argument('-port', help="PORT of the database", default=1955, type=int) parser.add_argument('-db', help="Database name", default="ExperientialSampling1", type=str) args = parser.parse_args() IP = args.ip + ":" + str(args.port) username = get_value_from_file('config.txt', 'username') password = get_value_from_file('config.txt', 'password') DBname = args.db file_type = { "collaborative": "download_collaborative", "AR": "download_AR", "competitive": "download_player" } file_name = get_file_name_from_dates(file_type[args.type], args.date) if os.path.isfile(file_name): print("file with name {} already exists".format(file_name)) exit(0) conn = pymssql.connect(server=IP,