On Mar 29, 4:28 pm, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
> Here is the correct def for clean_file:

I had to change

fileName = g.os_path_normpath(
        g.os_path_join(
            at.default_directory,'clean',p.anyAtFileNodeName()))

in the original version to

fileName = g.os_path_normpath(
    g.os_path_join(
        at.default_directory, 'clean',
g.os_path_basename(p.anyAtFileNodeName())))

and it worked as expected.

However, I can see that this script works just for a particular case
(when all derived files belong to the same directory). A more general
scenario (the derived files are stored in a hierarchy of directories)
would probably require collecting all file paths, finding a common
prefix (let's call it root, that's usually the src directory of a
project), addinng the 'clean' part to it, then adding the remaining
part of the absolute file path (that is relative to the root).
Thank you very much for the feedback.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to