/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 setup.py

  • Committer: Raoul Snyman
  • Date: 2019-03-08 20:41:27 UTC
  • mto: (7290.1.16 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: raoul@snyman.info-20190308204127-7y9n197muxv5t57g
Fix a problem with a missing import when installing on Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
                script_path = self._quoted_path(os.path.join(scripts_dir,
150
150
                                                             "brz"))
151
151
                python_exe = self._quoted_path(sys.executable)
152
 
                args = self._win_batch_args()
153
 
                batch_str = "@%s %s %s" % (python_exe, script_path, args)
 
152
                batch_str = "@%s %s %%*" % (python_exe, script_path)
154
153
                batch_path = os.path.join(self.install_dir, "brz.bat")
155
154
                with open(batch_path, "w") as f:
156
155
                    f.write(batch_str)
164
163
            return '"' + path + '"'
165
164
        else:
166
165
            return path
167
 
 
168
 
    def _win_batch_args(self):
169
 
        from breezy.win32utils import winver
170
 
        if winver == 'Windows NT':
171
 
            return '%*'
172
 
        else:
173
 
            return '%1 %2 %3 %4 %5 %6 %7 %8 %9'
174
166
#/class my_install_scripts
175
167
 
176
168