Sha256: fb07815b852c78e0919f0a2338f9e7d830ee673eeb09de083d7f4dfefe9dd8be
Contents?: true
Size: 724 Bytes
Versions: 15
Compression:
Stored size: 724 Bytes
Contents
#!/usr/bin/env ruby # cd to install path, so modules are found locally install_loc = $0.sub(/\/?[^\/]*$/, '') install_loc = '..' if install_loc == '.' or 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
15 entries across 15 versions & 1 rubygems