clan-vm-manager: prepend local clan-cli to python path

This commit is contained in:
Jörg Thalheim
2023-11-23 15:14:19 +01:00
parent ce500066e9
commit 1a76cbdace
2 changed files with 10 additions and 9 deletions

View File

@@ -1,10 +1,11 @@
#!/usr/bin/env python3
import os
import sys
from pathlib import Path
sys.path.insert(
0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
)
module_path = Path(__file__).parent.parent.absolute()
sys.path.insert(0, str(module_path))
sys.path.insert(0, str(module_path.parent / "clan_cli"))
from clan_vm_manager import main # NOQA