def get_user_config_dir(): major = artiq_version.split(".")[0] dir = user_config_dir("artiq", "m-labs", major) os.makedirs(dir, exist_ok=True) return dir