Pelles C forum

Pelles C => Feature requests => Topic started by: AlexN on July 22, 2009, 02:45:11 pm

Title: Relative path for AddIns
Post by: AlexN on July 22, 2009, 02:45:11 pm
Hi Pelle

Is it possible to store in the xml-file the relative path for AddIns? So poide can remember its options when you have Pelles C on an USB-stick which changig drive letters.

Thanks in advance
Alex ;)
Title: Re: Relative path for AddIns
Post by: Pelle on July 31, 2009, 02:47:39 pm
Probably not since it's sufficiently easy to do a search and replace in the XML file, and you should only have to do this once...
Title: Re: Relative path for AddIns
Post by: AlexN on July 31, 2009, 09:45:08 pm
Probably not since it's sufficiently easy to do a search and replace in the XML file, and you should only have to do this once...
Not really once, each time when you use the USB-stick on an other computer.
Is it necessary to write a program to adapt the XML-file or can I talk with you (there is a lot of time to Pelles C 6.5). ;)
Title: Re: Relative path for AddIns
Post by: Stefan Pendl on July 31, 2009, 10:02:26 pm
Probably not since it's sufficiently easy to do a search and replace in the XML file, and you should only have to do this once...
Not really once, each time when you use the USB-stick on an other computer.
Have you already tried to replace any instance of F:\PellesC\ with nothing?
This way F:\PellesC\include will get include and should work on any computer despite from the drive the USB stick is assigned to.
Title: Re: Relative path for AddIns
Post by: AlexN on August 01, 2009, 03:25:10 pm
Have you already tried to replace any instance of F:\PellesC\ with nothing?
This way F:\PellesC\include will get include and should work on any computer despite from the drive the USB stick is assigned to.

There is no problem with relative pathes for include and lib directory.
The problem are the pathes of the addins. It seems that POIDE scans at the start for existing addins in the Addins-directory and if the are new they are added with the absolute path and switched off. Addins with are never existing at the absolute path are deleted. If you put your USB-stick in a computer where you get another drive id all addins are deactivated.  :(
But I think, I will write a launcher application with changes the pathes in the XML-file  of the addins and start POIDE. I need only a little bit time. ;)