From b81224f61e692dabd48af2d40bc33eb71e2bdafa Mon Sep 17 00:00:00 2001 From: Ray Culp Date: Wed, 26 Jun 2024 16:22:10 +0200 Subject: [PATCH] Fixes #1 --- bin/obasync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/obasync b/bin/obasync index 1bd64c3..d842ecd 100755 --- a/bin/obasync +++ b/bin/obasync @@ -525,7 +525,7 @@ def create_dialog_library(storage, libname): storage: The Basic macro storage, as a Storage object. libname: The name of the dialog library. """ - if storage.type is "user": + if storage.type == "user": libraries = storage.oo.service_manager.createInstance( "com.sun.star.script.ApplicationDialogLibraryContainer") else: @@ -626,7 +626,7 @@ def run_macro(storage, libname, macro): libname: The name of the dialog library. macro: The The macro to run. """ - if storage.type is "user": + if storage.type == "user": factory = storage.oo.service_manager.DefaultContext.getByName( "/singletons/com.sun.star.script.provider." "theMasterScriptProviderFactory")