Skip to content

Commit

Permalink
Update setup documention
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Dec 8, 2024
1 parent 0876203 commit ebccd98
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docs/_static/manuals.install.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Install, Update and Tweak BitcoinLib
====================================
Install and setup BitcoinLib
============================

Installation
------------
Expand Down Expand Up @@ -145,15 +145,20 @@ derivation library. It works but it is slow when using BIP38 password protected
If you run into issues do not hesitate to contact us or file an issue at https://github.com/1200wd/bitcoinlib/issues


Using library in other software
-------------------------------
Change data directory
---------------------

If you use the library in other software and want to change file locations and other settings you can specify a
location for a config file in the BCL_CONFIG_FILE:
The default location for Bitcoinlib settings and data is in the user's dot bitcoinlib directory.
For Linux this would be ~/.bitcoinlib.
You can change the location of data, settings and database by specifying the directory in the system
environment 'BCL_DATA_DIR' variable:

.. code-block:: python
os.environ['BCL_CONFIG_FILE'] = '/var/www/blocksmurfer/bitcoinlib.ini'
os.environ['BCL_DATA_DIR'] = '/var/www/blocksmurfer/.bitcoinlib'
# or a second directory in user home
os.environ['BCL_DATA_DIR'] = '~/.bitcoinlib2'
Service providers and local nodes
Expand Down

0 comments on commit ebccd98

Please sign in to comment.