Ejemplo n.º 1
0
def main():

    # Try to locate gpg.exe
    if not ctypes.util.find_library('gpg.exe'):
        MessageBox = ctypes.windll.user32.MessageBoxA
        MessageBox(
            None, 'Gpg4win could not be detected.\n'
            'Please download and install gpg4win from http://gpg4win.org/ before continuing.',
            'Open Bazaar', 0)

        return

    # Workaround to make it possible to double click on the exe file
    sys.argv.append('start')

    # Start OpenBazaar
    openbazaar.main()
Ejemplo n.º 2
0
def main():

    # Try to locate gpg.exe
    if not ctypes.util.find_library('gpg.exe'):
        MessageBox = ctypes.windll.user32.MessageBoxA
        MessageBox(
            None,
            'Gpg4win could not be detected.\n'
            'Please download and install gpg4win from http://gpg4win.org/ before continuing.',
            'Open Bazaar',
            0
        )

        return

    # Workaround to make it possible to double click on the exe file
    sys.argv.append('start')

    # Start OpenBazaar
    openbazaar.main()