Fix: Actually check for seed file in .. dir

This commit is contained in:
Aaron Dewes 2022-01-28 01:49:36 -05:00
parent d94d917a4a
commit 23b5bf1d02

View File

@ -10,7 +10,7 @@ nodeRoot = os.path.join(scriptDir, "..", "..")
def deriveEntropy(identifier: str):
seedFile = os.path.join(nodeRoot, "db", "citadel-seed", "seed")
alternativeSeedFile = os.path.join(nodeRoot, "db", "citadel-seed", "seed")
alternativeSeedFile = os.path.join(nodeRoot, "..", "db", "citadel-seed", "seed")
if not os.path.isfile(seedFile):
if os.path.isfile(alternativeSeedFile):
seedFile = alternativeSeedFile