Sha256: a778f7524687cefcd2a58d6e2c08d6d39889fb008960b19b4841f1b8be243053
Contents?: true
Size: 713 Bytes
Versions: 12
Compression:
Stored size: 713 Bytes
Contents
#!/usr/bin/env ruby # cd to install path, so modules are found locally install_loc = __FILE__.sub(/\/?[^\/]*$/, '') install_loc = __FILE__.sub(/\/bin\/.*$/, '') install_loc = '..' if install_loc == '.' or install_loc == '' Dir.chdir(install_loc) $LOAD_PATH << "./lib" require 'IFMapper/FXMapperWindow' # 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
Version data entries
12 entries across 12 versions & 1 rubygems