<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,9 @@
 #!/usr/bin/env ruby
 require 'fileutils'
-command = ARGV.shift
+EXPORT_LOCATION = &quot;~/.bazaar/plugins/fastimport/exporters/bzr-fast-export.py&quot;
+PYTHON = ENV[&quot;PYTHON&quot;] || &quot;/opt/local/bin/python2.5&quot;
 
+command = ARGV.shift
 commands = [:add, :push, :fetch, :pull]
 
 if !command || !commands.include?(command.to_sym)
@@ -63,11 +65,11 @@ class BzrCommands
       print &quot;There doesn't seem to be an existing refmap. &quot;
       puts &quot;Doing an initial import&quot;
       FileUtils.makedirs(File.dirname(git_map))
-      `(/opt/local/bin/python2.5 ~/bzr-pieter/exporters/bzr-fast-export.py --export-marks=#{bzr_map} --git-branch=bzr/#{remote} #{location}) | (git fast-import --export-marks=#{git_map})`
+      `(#{PYTHON} #{EXPORT_LOCATION} --export-marks=#{bzr_map} --git-branch=bzr/#{remote} #{location}) | (git fast-import --export-marks=#{git_map})`
     elsif File.exists?(git_map) &amp;&amp; File.exists?(bzr_map)
       puts &quot;Updating remote #{remote}&quot;
       old_rev = `git rev-parse bzr/#{remote}`
-      `(/opt/local/bin/python2.5 ~/bzr-pieter/exporters/bzr-fast-export.py --import-marks=#{bzr_map} --export-marks=#{bzr_map} --git-branch=bzr/#{remote} #{location}) | (git fast-import --quiet --export-marks=#{git_map} --import-marks=#{git_map})`
+      `(#{PYTHON} #{EXPORT_LOCATION} --import-marks=#{bzr_map} --export-marks=#{bzr_map} --git-branch=bzr/#{remote} #{location}) | (git fast-import --quiet --export-marks=#{git_map} --import-marks=#{git_map})`
       new_rev = `git rev-parse bzr/#{remote}`
       puts &quot;Changes since last update:&quot;
       puts `git shortlog #{old_rev.strip}..#{new_rev.strip}`</diff>
      <filename>git-bzr</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>78da3821223284ede9faa553329ecdc123d4ba75</id>
    </parent>
  </parents>
  <author>
    <name>Pieter de Bie</name>
    <email>pdebie@ai.rug.nl</email>
  </author>
  <url>http://github.com/pieter/git-bzr/commit/c3617afba99ef9629d822a7faedf056391d0d441</url>
  <id>c3617afba99ef9629d822a7faedf056391d0d441</id>
  <committed-date>2008-07-22T04:47:17-07:00</committed-date>
  <authored-date>2008-07-22T04:47:17-07:00</authored-date>
  <message>Extract python and bzr-fast-export locations to location

This allows you to easily change the location of the files, or update the
script to your own config.</message>
  <tree>cb12df57ac2d0eb9f6ce3e2b99e69ddfe55fdf23</tree>
  <committer>
    <name>Pieter de Bie</name>
    <email>pdebie@ai.rug.nl</email>
  </committer>
</commit>
