wx.MessageBox(u"%s\n (%s)"%(message,''.join(xc)), 'Error')
class ConfWizApp(wx.App):
- def __init__(self, server):
+ def __init__(self, server, open_welcome_page=False):
self.server = server
+ self.show_welcome = open_welcome_page
wx.App.__init__(self, 0)
def get_backend(self):
return self.server + BACKEND
def open_welcome_page(self):
- args = {'v': str(allmydata.__version__),
- 'plat': sys.platform,
- }
- webbrowser.open(self.server + WELCOME_PAGE + '?' + urlencode(args))
+ if self.show_welcome:
+ args = {'v': str(allmydata.__version__),
+ 'plat': sys.platform,
+ }
+ webbrowser.open(self.server + WELCOME_PAGE + '?' + urlencode(args))
def OnInit(self):
try:
f.close()
if self.is_config_incomplete():
- app = ConfWizApp(DEFAULT_SERVER_URL)
+ app = ConfWizApp(DEFAULT_SERVER_URL, open_welcome_page=True)
app.MainLoop()
if self.is_config_incomplete():
from allmydata.gui.confwiz import main
if __name__ == '__main__':
- main(sys.argv)
+ main(sys.argv, open_welcome_page=False)