Yes, apologies, I am on Geany1.38....Yes, apologies, will use LibreOffice in the future instead of the abbreviation.
2. Geany saves files where you tell it to, if you create the file in Geany the first time you save the dialog will allow you to navigate to any directory to save, so go to .config/libreoffice/4/user/Scripts/Python/ and save there if thats where LibreOffice wants them.
Ah! OK, because I could not get it to find .config/libreoffice...etc...I assumed there was an error...but your comment prompted me to do it manually....and that worked! Thank you!
1. from above, you are just editing script files for LibreOffice, you don't really need to use projects, just save your Python files in the required directory, nor for Python do you need to compile or build, those are available for advanced users, but most of the time for Python all you need to do is run your script, (or activate it from LibreOffice if thats how its run).
Yes, thanks for that. Mostly I will be running them through LibreOffice....but I will occasionally run one through Geany....for example the following one....which I seem to be having a problem with,
[image: image.png]
When I compiled it I got an error I did not understand....and yet it seemed to run with no error....but it never printed a result. I am totally baffled at this.
Where might I have gone wrong....or where am I misunderstanding Geany.
Thank you.
On Mon, Jul 31, 2023 at 6:59 PM Lex Trotman via Users users@lists.geany.org wrote:
On Mon, 31 Jul 2023 at 14:52, dunbrokin--- via Users users@lists.geany.org wrote:
Sorry, as a total newbie, I am getting my head in a total spin about
where my python macros should reside.
I am on Ubuntu 23.04 and LO 7.5.4.2.
Please always give the version of Geany, there is no guarantee that anybody knows which version Ubuntu XXX has.
Please do not use abbreviations, as was noted before, use LibreOffice, not LO, someone who might otherwise be able to help you might not do so because they don't understand LO.
What I am trying to do is to write a macro that takes row of numbers
from the current spreadsheet and put it in the same place in another spreadsheet called Tool.ods (also open).
Its pretty unlikely that any Geany people will know about the specifics of LibreOffice Python, we build Geany not LibreOffice, for example is this script meant to be activated by LibreOffice, or run external to it? Details of script operation you need to ask on LibreOffice forums.
As far as I can make out, to achieve this in LO my scripts need to sit
in .config/libreoffice/4/user/Scripts/Python/.
However, it seems to me that Geany wants to put all my macros into
/home/projects
- see below
- Geany saves files where you tell it to, if you create the file in
Geany the first time you save the dialog will allow you to navigate to any directory to save, so go to .config/libreoffice/4/user/Scripts/Python/ and save there if thats where LibreOffice wants them. 3. When you open an existing file Geany will save to the same location unless you change it with save as.
When I click on New Project. I get a box asking me for File, File Name
and Base Path
File I presume is XXXX.py....but what do I put in for File Name and Base
Path?.....If I try to change any of the two to .config/libreoffice/4/user/Scripts/Python/......I find I cannot. I don't want to use default as then the script will not appear in the LO Macro look up box. What am I missing please?
- from above, you are just editing script files for LibreOffice, you
don't really need to use projects, just save your Python files in the required directory, nor for Python do you need to compile or build, those are available for advanced users, but most of the time for Python all you need to do is run your script, (or activate it from LibreOffice if thats how its run).
Cheers Lex _______________________________________________
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org