I install leo in /usr/local, owned by and writable only by root. With
the current settings as leo gets distributed, attempting to execute a
script tries to write it to the file /usr/local/lib/leo/test/
scriptFile.py - which worked as long as I owned that directory.
That's not good practice in a multiuser environment. I've made the
following changes so that scripts work "out of the box":
(*) In /usr/local/lib/leo/config/leoSettings.leo, I have
@string script_file_path = scriptFile.py
instead of "../test/scriptFile.py"
(*) I've made the following code change:
=== modified file 'leo/core/leoCommands.py'
--- leo/core/leoCommands.py 2008-10-18 16:38:52 +0000
+++ leo/core/leoCommands.py 2008-11-04 22:47:23 +0000
@@ -1716,12 +1716,12 @@
path = c.config.getString('script_file_path')
if path:
parts = path.split('/')
- path = g.app.loadDir
+ path = g.app.homeLeoDir
for part in parts:
path = c.os_path_finalize_join(path,part)
else:
path = c.os_path_finalize_join(
- g.app.loadDir,'..','test','scriptFile.py')
+ g.app.homeLeoDir,'..','test','scriptFile.py')
# Write the file.
try:
These changes are available in bzr+ssh://
[EMAIL PROTECTED]/%7Eleo-editor-team/leo-editor/thyrsus1/
You might also note in that branch an "install" shell script that
works for me in RHEL and Fedora.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---