> /usr/lib/ruby/1.8/ftools.rb:209:in `method_missing': mkdir is
> not a class method (ArgumentError)

Qt defines Dir in its own module. Ruby's ftools.rb somehow uses
this Dir, instead of the top level Dir.

I reduced this test to this little script. Just try to run it
without RubyScript2Exe. It refuses to create directory test4.

If you change "class << File" to "class File", it just works
fine. What's the difference, anyway?

Unfortunately, it has nothing to do with RubyScript2Exe itself.
If it did, I could easily change it...

gegroet,
Erik V.

----------------------------------------------------------------

 puts "START"

 Dir.rmdir "test1"      if File.directory?("test1")
 Dir.rmdir "test2"      if File.directory?("test2")
 Dir.rmdir "test3"      if File.directory?("test3")
 Dir.rmdir "test4"      if File.directory?("test4")

 Dir.mkdir "test1"

 class << File
   Dir.mkdir "test2"
 end

 require "Qt"

 Dir.mkdir "test3"

 class << File
   Dir.mkdir "test4"
 end

 puts "END"

----------------------------------------------------------------