summaryrefslogtreecommitdiff
path: root/wizards/Package_scriptforge.mk
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2021-03-04 17:19:27 +0100
committerJean-Pierre Ledure <jp@ledure.be>2021-03-05 10:26:51 +0100
commitf66a479225b35e9f1fd3621eef7496462088308a (patch)
tree8499d1565c6f9ac39355e3a36aac84abfd8b2d1e /wizards/Package_scriptforge.mk
parenta04dde6b9c6d625ac80acbad1e599dbd8edf3579 (diff)
ScriptForge - (scriptforge.py) Python-Basic machinery
Python scripts can now invoke usual Basic builtin functions Example: from ScriptForge import CreateScriptService bas = CreateScriptService('Basic') bas.MsgBox('This is the text to be displayed', bas.MB_ICONEXCLAMATION) Python scripts can use most ScriptForge services written in Basic Example: from scriptforge import CreateScriptService FSO = CreateScriptService('FileSystem') a = FSO.BuildPath('/tmp', 'xyz') Syntax and semantic are as close as possible to the Basic syntax Implemented are a SFServices class and its subclasses representing each a ScriptForge service and where the interfaces are defined (properties, methods and arguments) Their execution goes through the "machinery", i.e. a set of python and basic routines that manage the call from the python process to the appropriate service in an as much agnostic and generic way Only a limited set of services are implemented so far: SF_FileSystem (partially) and SF_Timer: they served as prototypes and initial tests Change-Id: I0b383b59359c12710e7165139e498cca5a7856bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111971 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'wizards/Package_scriptforge.mk')
-rw-r--r--wizards/Package_scriptforge.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/wizards/Package_scriptforge.mk b/wizards/Package_scriptforge.mk
index 81be6041fd84..13742b29b250 100644
--- a/wizards/Package_scriptforge.mk
+++ b/wizards/Package_scriptforge.mk
@@ -26,6 +26,7 @@ $(eval $(call gb_Package_add_files,wizards_basicsrvscriptforge,$(LIBO_SHARE_FOLD
SF_FileSystem.xba \
SF_L10N.xba \
SF_Platform.xba \
+ SF_PythonHelper.xba \
SF_Root.xba \
SF_Services.xba \
SF_Session.xba \
@@ -52,4 +53,7 @@ $(eval $(call gb_Package_add_files,wizards_basicsrvscriptforge,$(LIBO_SHARE_FOLD
po/en.po \
))
+$(eval $(call gb_Package_add_files,wizards_basicsrvscriptforge,$(LIBO_LIB_PYUNO_FOLDER),\
+ python/scriptforge.py \
+))
# vim: set noet sw=4 ts=4: