bismuthfoundation / masternodes

[Deprecated] Bismuth Masternodes
GNU General Public License v3.0
4 stars 2 forks source link

Better path resolution #1

Open Aareon opened 6 years ago

EggPool commented 6 years ago

Why is is better? I find it way more confusing.

Aareon commented 6 years ago

@eggpool the reasoning behind this is that the path resolution used right now is based on where the user is executing the script from, so the script might not find the modules folder depending on where they execute from.

In my change, the script gets the path of the current __file__ and moves up two directories deterministically.

Aareon commented 6 years ago

Any other issues with this?