Skip to content

Commit c812a32

Browse files
committed
fix issue with LD_LIBRARY_PATH attribute and extend timeout
1 parent af6809f commit c812a32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualbox/vboxcommon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __run_vboxmanage(cmd, real_time=False):
5353
# which can cause conflicts with external binaries like VBoxManage.
5454
# We create a clean environment for the subprocess to use the system's libraries.
5555
env = os.environ.copy()
56-
if sys.frozen and "LD_LIBRARY_PATH" in env:
56+
if getattr(sys, 'frozen', False) and "LD_LIBRARY_PATH" in env:
5757
# 'sys.frozen' is True when running from a PyInstaller executable.
5858
# We can either remove the variable or, more safely, restore the original
5959
# one if PyInstaller saved it. PyInstaller often saves it as LD_LIBRARY_PATH_ORIG.
@@ -283,7 +283,7 @@ def wait_until(vm_uuid, condition):
283283
Return True if the condition is met within one minute.
284284
Return False otherwise.
285285
"""
286-
timeout = 60 # seconds
286+
timeout = 600 # seconds (10 minutes)
287287
check_interval = 5 # seconds
288288
start_time = time.time()
289289
while time.time() - start_time < timeout:

0 commit comments

Comments
 (0)