RubyScript2Exe: how to determine the executable's directory

Discussion in 'Ruby' started by mojombo@gmail.com, Apr 19, 2006.

  1. Guest

    I've got a command line utility that I'm using RubyScript2Exe to
    package up for distribution. In the script I need to determine what
    directory the executable is in. Since the ruby script is unpacked into
    a temporary directory before running, using __FILE__ doesn't work. I'm
    thinking that EEE might send that value into the script somehow, but
    have not been able to determine if that is so. Any ideas?

    Tom Werner
     
    , Apr 19, 2006
    #1
    1. Advertising

  2. > I've got a command line utility that I'm using RubyScript2Exe
    > to package up for distribution. In the script I need to
    > determine what directory the executable is in. Since the ruby
    > script is unpacked into a temporary directory before running,
    > using __FILE__ doesn't work. I'm thinking that EEE might send
    > that value into the script somehow, but have not been able to
    > determine if that is so. Any ideas?


    You might want to use RUBYSCRIPT2EXE_APPEXE, as described on
    the site [1].

    gegroet,
    Erik V. - http://www.erikveen.dds.nl/

    [1] http://www.erikveen.dds.nl/rubyscript2exe/index.html#3.3.5
     
    Erik Veenstra, Apr 19, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    15
    Views:
    510
    Dave Thompson
    Aug 21, 2006
  2. pratap
    Replies:
    20
    Views:
    786
    Flash Gordon
    Mar 7, 2007
  3. Jason Cavett
    Replies:
    8
    Views:
    656
    Sanjay
    May 16, 2007
  4. Replies:
    0
    Views:
    460
  5. Erik Veenstra
    Replies:
    5
    Views:
    116
    Erik Veenstra
    Oct 7, 2005
Loading...

Share This Page