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")