NO

Author Topic: Relative path for AddIns  (Read 5674 times)

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Relative path for AddIns
« 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 ;)
best regards
 Alex ;)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Relative path for AddIns
« Reply #1 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...
/Pelle

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Relative path for AddIns
« Reply #2 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). ;)
best regards
 Alex ;)

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: Relative path for AddIns
« Reply #3 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.
---
Stefan

Proud member of the UltraDefrag Development Team

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Relative path for AddIns
« Reply #4 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. ;)
best regards
 Alex ;)