Author Topic: Wizard script Disable Auto generate filename extension  (Read 5519 times)

Offline BrianSidebotham

  • Multiple posting newcomer
  • *
  • Posts: 45
Wizard script Disable Auto generate filename extension
« on: September 21, 2007, 08:44:23 pm »
Hi There,

Is there any way to do this? I can't see it from the wiki, but again I might be doing something daft! For AVR targets, the default output is not an exe.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Wizard script Disable Auto generate filename extension
« Reply #1 on: September 21, 2007, 08:59:00 pm »
Is there any way to do this? I can't see it from the wiki, but again I might be doing something daft! For AVR targets, the default output is not an exe.

It's possible. Use the following command.
Code
target.SetTargetFilenameGenerationPolicy(tgfpPlatformDefault, tgfpNone);

It will turn off the auto-extension generation. In case you want to disable auto prefix generation too, use the following command-
Code
target.SetTargetFilenameGenerationPolicy(tgfpNone, tgfpNone);

It was added couple of months back and the Wiki has not been updated.
« Last Edit: September 21, 2007, 09:04:29 pm by Biplab »
Be a part of the solution, not a part of the problem.

Offline BrianSidebotham

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Wizard script Disable Auto generate filename extension
« Reply #2 on: September 24, 2007, 10:54:50 am »
Thanks very much for that.