Sha256: 23c64b0121bab2a88fb8f88f626d3f397be4d4cda6fae5ffc0911020b2c6a1ef
Contents?: true
Size: 721 Bytes
Versions: 11
Compression:
Stored size: 721 Bytes
Contents
#!/usr/bin/env ruby # cd to install path, so modules are found locally install_loc = $0.sub(/\/?[^\/]*$/, '') install_loc = '.' if install_loc == '' Dir.chdir(install_loc) $LOAD_PATH << './lib' require 'rubygems' require 'IFMapper/FXMapperWindow' if __FILE__ == $0 # Make application application = FXApp.new("IFMapper", "gga") # Make window m = FXMapperWindow.new(application) # Create the application windows application.create # Optionally, open a map from command-line file = FXMapperWindow::default_options['Map'] if file m.open_file(file) end # Run the application begin application.run rescue => e m.autosave $stderr.puts e $stderr.flush raise e end end
Version data entries
11 entries across 11 versions & 1 rubygems