~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_gpg.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-16 02:25:56 UTC
  • mto: (1185.31.56 bzr-win32)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051216022556-6abfc63e721f4b95
Use the correct python in case it isn't in the path

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            # But stupid windows and line-ending conversions. 
56
56
            # It is too much work to make sys.stdout be in binary mode.
57
57
            # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65443
58
 
            my_gpg._command_line = lambda:['python', '-c',
 
58
            my_gpg._command_line = lambda:[sys.executable, '-c',
59
59
                    'import sys; sys.stdout.write(sys.stdin.read())']
60
60
            new_content = content.replace('\n', '\r\n')
61
61