From efb521e1bef482e59807a25c6b2ac4d27caee1be Mon Sep 17 00:00:00 2001 From: nutti Date: Thu, 1 Feb 2024 21:41:52 +0900 Subject: [PATCH] WIP --- .github/workflows/ci.yml | 2 +- tests/python/screencast_keys_test/common.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b169731..42f4bed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: - name: Get required packages for Blender run: | sudo apt-get update -qq - sudo apt-get install -y blender wget python3 python3-pip zip libglu1 libfreetype6 libglib2.0-0 libsm6 libxrender1 libxext6 + sudo apt-get install -y blender wget python3 python3-pip zip libglu1 libfreetype6 - name: Get required pip packages run: pip3 install -r requirements.txt diff --git a/tests/python/screencast_keys_test/common.py b/tests/python/screencast_keys_test/common.py index bcbe0f6..1951f65 100644 --- a/tests/python/screencast_keys_test/common.py +++ b/tests/python/screencast_keys_test/common.py @@ -52,7 +52,12 @@ def operator_exists(idname): op_as_string(idname) return True except: - return False + try: + from bpy.ops import _op_as_string + _op_as_string(idname) + return True + except: + return False def menu_exists(idname):