mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 15:58:48 +00:00
Merge pull request #326 from PR0M3TH3AN/codex/fix-modulenotfounderror-for-constants
Fix test profile script import
This commit is contained in:
@@ -11,9 +11,16 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import random
|
import random
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from bip_utils import Bip39MnemonicGenerator, Bip39WordsNum, Bip39Languages
|
from bip_utils import Bip39Languages, Bip39MnemonicGenerator, Bip39WordsNum
|
||||||
|
|
||||||
|
# Ensure src directory is in sys.path for imports
|
||||||
|
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
SRC_DIR = PROJECT_ROOT / "src"
|
||||||
|
if str(SRC_DIR) not in sys.path:
|
||||||
|
sys.path.insert(0, str(SRC_DIR))
|
||||||
|
|
||||||
from constants import APP_DIR
|
from constants import APP_DIR
|
||||||
from utils.key_derivation import derive_key_from_password, derive_index_key
|
from utils.key_derivation import derive_key_from_password, derive_index_key
|
||||||
|
Reference in New Issue
Block a user