Sha256: 65dc999d4cad5b4d660de21eed4ae33ea8285759dd3af738ac1a8684fa7ec50c

Contents?: true

Size: 702 Bytes

Versions: 11

Compression:

Stored size: 702 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 '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

Version Path
ifmapper-1.2.8 IFMapper.rbw
ifmapper-1.2.6 IFMapper.rbw
ifmapper-1.2.5 IFMapper.rbw
ifmapper-1.2.4 IFMapper.rbw
ifmapper-1.2.3 IFMapper.rbw
ifmapper-1.2.2 IFMapper.rbw
ifmapper-1.2.1 IFMapper.rbw
ifmapper-1.2.0 IFMapper.rbw
ifmapper-1.1.6 IFMapper.rbw
ifmapper-1.1.5 IFMapper.rbw
ifmapper-1.1.4 IFMapper.rbw