mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
include headers file in package
This commit is contained in:
parent
59673ccda7
commit
dd2302140f
2 changed files with 12 additions and 5 deletions
|
@ -17,8 +17,8 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
import threading, time, Queue, os, sys
|
import threading, time, Queue, os, sys, shutil
|
||||||
from util import user_dir, print_error
|
from util import user_dir, appdata_dir, print_error
|
||||||
from bitcoin import *
|
from bitcoin import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -266,8 +266,15 @@ class WalletVerifier(threading.Thread):
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
f = open(filename,'rb+')
|
f = open(filename,'rb+')
|
||||||
else:
|
else:
|
||||||
print_error( "creating file", filename )
|
src = os.path.join(appdata_dir(),'blockchain_headers')
|
||||||
f = open(filename,'wb+')
|
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)
|
f.seek(index*2016*80)
|
||||||
h = f.write(chunk)
|
h = f.write(chunk)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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.append( ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )
|
||||||
|
|
||||||
data_files += [
|
data_files += [
|
||||||
(util.appdata_dir(), ["data/README"]),
|
(util.appdata_dir(), ["data/README", "data/blockchain_headers"]),
|
||||||
(os.path.join(util.appdata_dir(), "cleanlook"), [
|
(os.path.join(util.appdata_dir(), "cleanlook"), [
|
||||||
"data/cleanlook/name.cfg",
|
"data/cleanlook/name.cfg",
|
||||||
"data/cleanlook/style.css"
|
"data/cleanlook/style.css"
|
||||||
|
|
Loading…
Add table
Reference in a new issue