Skip to content

Commit

Permalink
fix scriptname
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Wingerberg committed Oct 22, 2024
1 parent 90b805d commit 8cd0d70
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/grpc-ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,16 @@ def handle_quoted_arguments(command_args):
return rffmpeg_command

if __name__ == '__main__':
script_name = os.path.basename(sys.argv[0])
# Get the command line arguments
command_args = sys.argv[1:]

# Process and reassemble the arguments
rffmpeg_command = handle_quoted_arguments(command_args)

# Print the constructed command for debugging
#print(rffmpeg_command)

command = [script_name] + rffmpeg_command
# Convert the list to a single command string
command_str = sys.argv[0].join(rffmpeg_command)
#print(command_str)
command_str = ' '.join(command)

# Run the command
asyncio.run(run_command(command_str, USE_SSL))

0 comments on commit 8cd0d70

Please sign in to comment.