Skip to content

Commit 8cd0d70

Browse files
author
Lukas Wingerberg
committed
fix scriptname
1 parent 90b805d commit 8cd0d70

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

client/grpc-ffmpeg.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,16 @@ def handle_quoted_arguments(command_args):
9494
return rffmpeg_command
9595

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

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

103-
# Print the constructed command for debugging
104-
#print(rffmpeg_command)
105-
104+
command = [script_name] + rffmpeg_command
106105
# Convert the list to a single command string
107-
command_str = sys.argv[0].join(rffmpeg_command)
108-
#print(command_str)
106+
command_str = ' '.join(command)
109107

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

0 commit comments

Comments
 (0)