/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-02 06:03:07 UTC
  • mfrom: (7309.1.1 merge-3.0)
  • Revision ID: breezy.the.bot@gmail.com-20190602060307-k1s62fxuqo4gtgkg
Merge the 3.0 branch.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.0/+merge/368233

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