Author Topic: [1.8 RC1] #__FILE__ preprocessor directive does not seem to work  (Read 3187 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
var ffM_allTests_filePath = #__FILE__ ;

leave the variable undefined.
-- bitli

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: [1.8 RC1] #__FILE__ preprocessor directive does not seem to work
« Reply #1 on: 2012 December 24 11:30:14 »
Hmm, that's strange. I have just checked this code and it works well:

Code: [Select]
var a = #__FILE__;
console.writeln( a );

Are you sure there's anything else that can be wiping out your 'ffM_allTests_filePath' variable?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: [1.8 RC1] #__FILE__ preprocessor directive does not seem to work
« Reply #2 on: 2012 December 24 12:03:45 »
Indeed, sorry - no bug.

The console is now much much faster, useable for reasonable logging, thanks.

I tried the new script editor. Quite nice, but I did not find a 'find/replace in all open files' that was quite convenient (I like to spread my scripts in a few files). Did I miss something ?

Merry xmas.
-- bitli