diff --git a/Readme.md b/Readme.md index 62a74a0..626a17d 100644 --- a/Readme.md +++ b/Readme.md @@ -3,8 +3,8 @@ The purpose of this software is to splitt a secret over multiple people. Just if # testing ```bash -python scripts/main.py --mode cleanup && -python scripts/main.py --amount 3 --quota 50 --mode encrypt --add-user-information --master-password "ewrwerwerew" << END_OF_INPUTS +python splitted-secret/scripts/main.py --mode cleanup && +python splitted-secret/scripts/main.py --amount 3 --quota 50 --mode encrypt --add-user-information --master-password "ewrwerwerew" << END_OF_INPUTS alpha bravo 123123812908 asfdasd@asdskjd.de @@ -46,7 +46,6 @@ END_OF_INPUTS ## todo - implement tails setup script -- implement relativ call - implement tmp mount for decrypted files - add data-input attribut - add data-output attribut diff --git a/scripts/classes/AbstractSplittedSecret.py b/scripts/classes/AbstractSplittedSecret.py index 16328de..6b9c6e3 100644 --- a/scripts/classes/AbstractSplittedSecret.py +++ b/scripts/classes/AbstractSplittedSecret.py @@ -1,4 +1,5 @@ from .Cli import Cli +import os class AbstractSplittedSecret(Cli): USER_PASSWORD_LENGTHS = 64 @@ -9,11 +10,14 @@ class AbstractSplittedSecret(Cli): MINIMUM_SECRET_HOLDERS = 2 TYPE_ENCRYPTED="encrypted" - TYPE_DECRYPTED="decrypted" + TYPE_DECRYPTED="decrypted" + + ROOT_PATH= os.path.join(os.path.dirname(os.path.abspath(__file__)),"../","../") def __init__(self): super(Cli, self).__init__() - self.data_folder = "data/" + + self.data_folder = os.path.join(self.ROOT_PATH,"data") + '/' def getCoSecretHoldersRange(): return range(AbstractSplittedSecret.MINIMUM_SECRET_HOLDERS,AbstractSplittedSecret.MAXIMUM_SECRET_HOLDERS)