fix import

This commit is contained in:
Derek Hirotsu
2025-07-17 16:55:19 -07:00
parent 53b808fa71
commit 0ac071317b
2 changed files with 6 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ def main():
preset = ENCODER_TO_PRESET[args.encoder]
if handbrake_present() is False:
logging.info("copying handbrake from network drive")
if args.share_user is not None and args.share_name is not None:
if args.share_user is not None and args.share_pass is not None:
connect_and_copy_handbrake(args.share_user, args.share_pass)
else:
copy_handbrake_from_network_drive()
@@ -126,7 +126,7 @@ def main():
if is_video_source_present() is False:
logging.info("copying big buck bunny from network drive")
if args.share_user is not None and args.share_name is not None:
if args.share_user is not None and args.share_pass is not None:
connect_and_copy_video(args.share_user, args.share_pass)
else:
copy_video_source()

View File

@@ -4,11 +4,15 @@ import os
from pathlib import Path
import time
import shutil
import sys
HANDBRAKE_EXECUTABLE = "HandBrakeCLI.exe"
SOURCE_VIDEO_NAME = "big_buck_bunny_1080p24.y4m"
SCRIPT_DIR = Path(os.path.dirname(os.path.realpath(__file__)))
sys.path.insert(1, os.path.join(sys.path[0], ".."))
from harness_utils.network_share import (
network_share_auth
)