ActiveState Community

How to obtain path of live directory

Posted by redndahead on 2009-05-28 11:19
OS: All / Any

I always use a different directory for my .kpf files than my actual directory. It seems that using %p always returns the location of the .kpf file. I would like to get the location of the live directory. How would I go about doing this?

toddw | Thu, 2009-05-28 11:45

You can use "%D" (the directory of the current file).

Currently Komodo does not offer a interpolation code for a live project directory.

I feel that the "%p" should be the directory of the live folder in this case, instead of the directory of the project. I've logged this as a Komodo bug:
http://bugs.activestate.com/show_bug.cgi?id=83262

If your using a macro, you can determine the live folder directory like this:
http://community.activestate.com/forum/there-way#comment-8174

Cheers,
Todd

redndahead | Thu, 2009-05-28 11:56

Thanks %D won't quite work because the file may be in a subfolder of the root project directory. The second link looks like more what I am looking for. Thanks for submitting the bug report.