Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1317: honor_prefix.patch

File honor_prefix.patch, 740 bytes (added by tbradshaw, 5 years ago)

Patch to honor the prefix in the situation described. Has weird filenames.

  • .py

    old new  
    196196                self.upgrade = True 
    197197            if self.script_dir is None: 
    198198                if os.name == "posix": 
    199                     self.script_dir = "/usr/local/bin" 
     199                    if self.prefix: 
     200                        # honor the prefix specified on the command line 
     201                        self.script_dir = os.path.join(self.prefix, 
     202                                                       "bin") 
     203                    else: 
     204                        self.script_dir = "/usr/local/bin" 
    200205                else: 
    201206                    path = os.environ.get("PATH", "") 
    202207                    import re