2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-14 18:50:03 +01:00
parent 4fa12bf1a6
commit 76b31b121d
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
gAN9cQAoWAgAAABPcGVyYXRvcnEBfXECWAYAAABwdWJrZXlxA0MtVUVDMgAAAC3pmWmqAjCw6iOEmMR8DuIJksXZExbrCdzSzizmFm/Id0qs0ZE5cQRzWAkAAABUZWxlcGhvbmVxBX1xBihoA0MtVUVDMgAAAC1DbVHAAxvo5gosXnLkMryw/KAf21SORWwQMBrUacKRQLS0gPGZcQdYBwAAAHByaXZrZXlxCEMtUkVDMgAAAC0mPSw3AE3koOtJUsXInyr5w8mjrETCOwb6/xpDtQqU63eyNVRucQl1WAgAAABrb21yYWRlc3EKfXELaANDLVVFQzIAAAAttGl1AAKwIdHAKEft4MlOVYTy6qMQ/Byosw/Qo6zgpHwGA8ZJLnEMc3Uu
gAN9cQAoWAgAAABPcGVyYXRvcnEBfXECWAYAAABwdWJrZXlxA0MtVUVDMgAAAC3vGMH2A1cySWf5BAcqsA8H0tB/crm7FU1PCRmld6iY+WNgt6OZcQRzWAkAAABUZWxlcGhvbmVxBX1xBihoA0MtVUVDMgAAAC24OqrPAs1Vo9XuZ6qe3N9bhJyb4/mUpfSH2lZ7cxE9L3c+x4h6cQdYBwAAAHByaXZrZXlxCEMtUkVDMgAAAC09wSqFAO/jYP/EOPqnt4TYNZZWS+2wMZYNyGSzHt9kJXRW7sGdcQl1WAgAAABrb21yYWRlc3EKfXELaANDLVVFQzIAAAAtDDxpIgK8xZ1gNe46MM7I0dsyM5ZXa6zNSnACj6Xg8yziy/FyInEMc3Uu

View File

@ -10,6 +10,7 @@ OPERATOR_API_URL = f'http://{KOMRADE_URL}/op/'
# paths
import os
PATH_USER_HOME = os.path.join(os.path.expanduser('~'))
PATH_KOMRADE = os.path.abspath(os.path.join(os.path.expanduser('~'),'komrade'))
PATH_KOMRADE_KEYS = os.path.join(PATH_KOMRADE,'.keys')
PATH_KOMRADE_DATA = os.path.join(PATH_KOMRADE,'.data')
@ -22,8 +23,10 @@ PATH_CRYPT_CA_KEYS = PATH_CRYPT_OP_KEYS
PATH_CRYPT_CA_DATA = PATH_CRYPT_OP_DATA
PATH_QRCODES = os.path.join(PATH_KOMRADE,'contacts')
PATH_SECRETS = os.path.join(PATH_KOMRADE,'.secrets')
PATH_SUPER_SECRETS = os.path.join(PATH_USER_HOME,'.secrets')
PATH_SUPER_SECRET_OP_KEY = os.path.join(PATH_SUPER_SECRETS,'.komrade.op.key')
for x in [PATH_KOMRADE,PATH_KOMRADE_DATA,PATH_KOMRADE_KEYS,PATH_QRCODES,PATH_SECRETS]:
for x in [PATH_KOMRADE,PATH_KOMRADE_DATA,PATH_KOMRADE_KEYS,PATH_QRCODES,PATH_SECRETS,PATH_SUPER_SECRETS]:
if not os.path.exists(x):
os.makedirs(x)