[Geany] relative paths in project files: is there an option?

Stephan Beal sgbeal at xxxxx
Thu Jun 30 11:22:39 UTC 2011


On Thu, Jun 30, 2011 at 12:54 PM, Joerg Desch <jd.vvd at web.de> wrote:

> OK. I thought, that the base path must be absolute. But to get the
> expected behavior, I must use . as base path, which seams to work here on
> linux. The session informations stored in section [files] are still using
> an absolute path. Is this the point where a project option you've
> mentioned could help?


My thinking was:

...
[project]
name=....
base_path=/kunden/....

^^^^^ base_path goes awy away completely. It's not needed - base_dir is
computed from the path holding the project file. For this example, let's
assume my project file is in /kunden/. (that's German for "customers").

[files]
FILE_NAME_0=26926;PHP;0;16;1;1;0;/kunden/abc/def/foo.bar;0
FILE_NAME_1=0;PHP;0;16;1;1;0;/kunden/.../isr_invsr_single_edit.php;0

Would become:

FILE_NAME_0=26926;PHP;0;16;1;1;0;abc/def/foo.bar;0
FILE_NAME_1=0;PHP;0;16;1;1;0;.../isr_invsr_single_edit.php;0

etc. etc.

If, despite the wisdom of 40+ years of collective software development
conventions, i place files outside of my project root, they are still
handled:

FILE_NAME_0=...;TEXT;0;16;1;1;0;/etc/hosts;0


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20110630/bed9940e/attachment.html>


More information about the Users mailing list