/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/win32/brz-win32-bdist-postinstall.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
    ##
51
51
    # XXX change message for something more appropriate
52
 
    print """Breezy %s
 
52
    print("""Breezy %s
53
53
 
54
54
Congratulation! Brz successfully installed.
55
55
 
56
 
""" % ver
 
56
""" % ver)
57
57
 
58
58
    batch_path = "brz.bat"
59
59
    prefix = sys.exec_prefix
85
85
                                        # auto-deinstallation procedure
86
86
        ##
87
87
        # inform user where batch launcher is.
88
 
        print "Created:", batch_path
89
 
        print "Use this batch file to run brz"
90
 
    except Exception, e:
91
 
        print "ERROR: Unable to create %s: %s" % (batch_path, e)
 
88
        print("Created:", batch_path)
 
89
        print("Use this batch file to run brz")
 
90
    except Exception as e:
 
91
        print("ERROR: Unable to create %s: %s" % (batch_path, e))
92
92
 
93
93
    ## this hunk borrowed from pywin32_postinstall.py
94
94
    # use bdist_wininst builtins to create a shortcut.
115
115
    dst = os.path.join(fldr, 'Documentation.lnk')
116
116
    create_shortcut(docs, 'Breezy Documentation', dst)
117
117
    file_created(dst)
118
 
    print 'Documentation for Breezy: Start => Programs => Breezy'
 
118
    print('Documentation for Breezy: Start => Programs => Breezy')
119
119
 
120
120
    # brz in cmd shell
121
121
    if os.name == 'nt':