Re: [anjuta-list] Relative paths for project files



On Sun, 29 Sep 2013 19:44:11 +0200
Sébastien Granjoux <seb sfo free fr> wrote:

The use of absolute paths continues to cause problems - each
time I distribute a task to my students, they have to reimport
the project, as their paths are never the same as mine.

I expect that paths are stored relative to the project directory. Can 
you check in your project directory in .anjuta/session/anjuta.session?

The key Files in [File Loader] section, should contains relative paths.

That is strange:

-------------------
[File Loader]
Files=../../src/callbacks.h#12

[Document Manager]
bookmarks=<?xml version="1.0" encoding="UTF-8"?>\n<bookmarks/>\n

[Execution]
Run in terminal=2
Working directories=../../../pic_ide-0.7
-------------------

For example Files=../../
This is not relative to the
project directory. src/callbacks.h is _in_ the project directory, so the
path should either be:

src/callbacks.h#12
(or
./src/callbacks.h#12)

Maybe they are relative to the .anjuta/session path? That is somewhat 
strange and complicated though. Isn't .anjuta/session always 
supposed to be at the project root?

Also, why ../../../pic_ide-0.7? Why not simply ../.. ? That way the 
project name can change without problems.

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]