URI: 
       tinclude headers file in package - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit dd2302140f9c13d60416843f8842e75c7f0b02b7
   DIR parent 59673ccda7492c2f9d2a4fa4084f295f6418b053
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Mon,  5 Nov 2012 13:03:05 +0100
       
       include headers file in package
       
       Diffstat:
         M lib/verifier.py                     |      15 +++++++++++----
         M setup.py                            |       2 +-
       
       2 files changed, 12 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/lib/verifier.py b/lib/verifier.py
       t@@ -17,8 +17,8 @@
        # along with this program. If not, see <http://www.gnu.org/licenses/>.
        
        
       -import threading, time, Queue, os, sys
       -from util import user_dir, print_error
       +import threading, time, Queue, os, sys, shutil
       +from util import user_dir, appdata_dir, print_error
        from bitcoin import *
        
        
       t@@ -266,8 +266,15 @@ class WalletVerifier(threading.Thread):
                if os.path.exists(filename):
                    f = open(filename,'rb+')
                else:
       -            print_error( "creating file", filename )
       -            f = open(filename,'wb+')
       +            src = os.path.join(appdata_dir(),'blockchain_headers')
       +            if os.path.exists(src):
       +                # copy it from appdata dir
       +                print_error( "copying headers to", filename )
       +                shutil.copy(src, filename)
       +                f = open(filename,'rb+')
       +            else:
       +                print_error( "creating file", filename )
       +                f = open(filename,'wb+')
                f.seek(index*2016*80)
                h = f.write(chunk)
                f.close()
   DIR diff --git a/setup.py b/setup.py
       t@@ -25,7 +25,7 @@ if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Wi
                    data_files.append(  ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )
        
        data_files += [
       -    (util.appdata_dir(), ["data/README"]),
       +    (util.appdata_dir(), ["data/README", "data/blockchain_headers"]),
            (os.path.join(util.appdata_dir(), "cleanlook"), [
                "data/cleanlook/name.cfg",
                "data/cleanlook/style.css"