diff --git a/easymacro.py b/easymacro.py index 23613cb..526aaf5 100644 --- a/easymacro.py +++ b/easymacro.py @@ -4144,6 +4144,10 @@ def active_cell(): return get_cell() +def active_sheet(): + return get_document().active + + def create_dialog(properties): return LODialog(**properties) diff --git a/files/ZAZPip_v0.4.0.oxt b/files/ZAZPip_v0.4.0.oxt index 73f5096..be3dcec 100644 Binary files a/files/ZAZPip_v0.4.0.oxt and b/files/ZAZPip_v0.4.0.oxt differ diff --git a/source/pythonpath/easymacro.py b/source/pythonpath/easymacro.py index 23613cb..56b86c4 100644 --- a/source/pythonpath/easymacro.py +++ b/source/pythonpath/easymacro.py @@ -132,7 +132,7 @@ IS_WIN = OS == 'Windows' LOG_NAME = 'ZAZ' CLIPBOARD_FORMAT_TEXT = 'text/plain;charset=utf-16' -PYTHON = 'python3' +PYTHON = 'python' if IS_WIN: PYTHON = 'python.exe' CALC = 'calc' @@ -4144,6 +4144,10 @@ def active_cell(): return get_cell() +def active_sheet(): + return get_document().active + + def create_dialog(properties): return LODialog(**properties)