News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Relative path for AddIns

Started by AlexN, July 22, 2009, 02:45:11 PM

Previous topic - Next topic

AlexN

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 ;)
best regards
Alex ;)

Pelle

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...
/Pelle

AlexN

Quote from: 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...
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). ;)
best regards
Alex ;)

Stefan Pendl

Quote from: AlexN on July 31, 2009, 09:45:08 PM
Quote from: 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...
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.
---
Stefan

Proud member of the UltraDefrag Development Team

AlexN

Quote from: Stefan Pendl on July 31, 2009, 10:02:26 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. ;)
best regards
Alex ;)