Fred808 commited on
Commit
2782410
·
verified ·
1 Parent(s): ae15fcc

Update qemu/web_interface.py

Browse files
Files changed (1) hide show
  1. qemu/web_interface.py +6 -1
qemu/web_interface.py CHANGED
@@ -11,8 +11,13 @@ import logging
11
  from pathlib import Path
12
  from typing import Optional, Dict
13
  import json
 
 
14
 
15
- from .qemu_manager import QEMUManager
 
 
 
16
 
17
  # Configure logging
18
  logging.basicConfig(level=logging.DEBUG)
 
11
  from pathlib import Path
12
  from typing import Optional, Dict
13
  import json
14
+ import os
15
+ import sys
16
 
17
+ # Add the parent directory to the Python path
18
+ sys.path.insert(0, str(Path(__file__).parent.parent))
19
+
20
+ from qemu.qemu_manager import QEMUManager
21
 
22
  # Configure logging
23
  logging.basicConfig(level=logging.DEBUG)