/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: Jelmer Vernooij
  • Date: 2019-06-02 05:13:10 UTC
  • mfrom: (7290.1.23 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190602051310-ktsdhuz9bycrkxma
Merge lp:brz/3.0.

Show diffs side-by-side

added added

removed removed

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