1""" 2@package gis_set_error 3 4GRASS start-up screen error message. 5 6(C) 2010-2011 by the GRASS Development Team 7 8This program is free software under the GNU General Public License 9(>=v2). Read the file COPYING that comes with GRASS for details. 10 11@author Martin Landa <landa.martin gmail.com> 12""" 13 14import os 15import sys 16 17from core import globalvar 18import wx 19 20 21def main(): 22 app = wx.App() 23 24 if len(sys.argv) == 1: 25 msg = "Unknown reason" 26 else: 27 msg = '' 28 for m in sys.argv[1:]: 29 msg += m 30 31 wx.MessageBox(caption="Error", 32 message=msg, 33 style=wx.OK | wx.ICON_ERROR) 34 35 app.MainLoop() 36 37if __name__ == "__main__": 38 main() 39