Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve examples to make it compatible with Debian/RPM installations of Algorand Node #200

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

goojal
Copy link

@goojal goojal commented Jun 12, 2021

Hi,
I was trying to run the project on Ubuntu 20.04 and had problems with running the example codes, so I tried to fix them to make the examples compatible with Debian/RPM installations of Algorand Node.

Basically it fixes 2 things in tokens.py:

  1. Replaces the data_dir_path with ALGORAND_DATA environment variable if it's already set by user.
  2. When installing with Debian or RPM packages, kmd related files will be written in ~/.algorand/mainnet-version/kmd-version/. So kmd_token and kmd_address must be retrieved from that directory if it exists.

In both cases we first check if the corresponding variables or folders exist, so one can still run examples like before on other operating systems.

@CLAassistant
Copy link

CLAassistant commented Jun 12, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants