Index: post-review
===================================================================
--- post-review	(revision 1955)
+++ post-review	(working copy)
@@ -92,6 +92,9 @@
 PUBLISH         = False
 OPEN_BROWSER    = False
 
+# Perforce-specific settings
+P4_COMMAND = 'p4'
+
 # Debugging.  For development...
 DEBUG           = False
 
@@ -1261,10 +1264,10 @@
     and generates compatible diffs.
     """
     def get_repository_info(self):
-        if not check_install('p4 help'):
+        if not check_install(P4_COMMAND + ' help'):
             return None
 
-        data = execute(["p4", "info"], ignore_errors=True)
+        data = execute([P4_COMMAND, "info"], ignore_errors=True)
 
         m = re.search(r'^Server address: (.+)$', data, re.M)
         if not m:
@@ -1304,7 +1307,7 @@
         should not be used unencoded in urls.
         """
 
-        counters_text = execute(["p4", "counters"])
+        counters_text = execute([P4_COMMAND, "counters"])
 
         # Try for a "reviewboard.url" counter first.
         m = re.search(r'^reviewboard.url = (\S+)', counters_text, re.M)
@@ -1469,7 +1472,7 @@
 
         The return type depends on the command being run.
         """
-        command = ['p4', '-G'] + command
+        command = [P4_COMMAND, '-G'] + command
         p = subprocess.Popen(command, stdout=subprocess.PIPE)
         result = []
         has_error = False
@@ -1509,7 +1512,7 @@
 
         debug("Generating diff for changenum %s" % changenum)
 
-        description = execute(["p4", "describe", "-s", changenum],
+        description = execute([P4_COMMAND, "describe", "-s", changenum],
                               split_lines=True)
 
         if '*pending*' in description[0]:
@@ -1692,7 +1695,7 @@
         a permissions bug on Windows.
         """
         debug('Writing "%s" to "%s"' % (depot_path, tmpfile))
-        data = execute(["p4", "print", "-q", depot_path])
+        data = execute([P4_COMMAND, "print", "-q", depot_path])
 
         f = open(tmpfile, "w")
         f.write(data)
@@ -1705,7 +1708,7 @@
         """
         # $ p4 where //user/bvanzant/main/testing
         # //user/bvanzant/main/testing //bvanzant:test05:home/testing /home/bvanzant/home-versioned/testing
-        where_output = execute(["p4", "where", depot_path], split_lines=True)
+        where_output = execute([P4_COMMAND, "where", depot_path], split_lines=True)
         # Take only the last line from the where command.  If you have a
         # multi-line view mapping with exclusions, Perforce will display
         # the exclusions in order, with the last line showing the actual
