Mar-15-2020, 04:50 PM
(This post was last modified: Mar-15-2020, 04:51 PM by EddiesTech.)
Hello there,
I have not used Python in a while - I've been focusing on JavaScript - so this may be one of those 'noob questions' people refer to. I made a variable of strings like this:
('sudo ./pi_fm_rds -freq 93 -audio', '/home/pi/Desktop/test.py', '-ps SATSUN -rt SATSUNRADIO')
instead of one big string.
Does anyone know why it does this? How can I fix this?
Thanks in advance for any help,
Eddie
Edit: file.name is defined in the code
I have not used Python in a while - I've been focusing on JavaScript - so this may be one of those 'noob questions' people refer to. I made a variable of strings like this:
cmd = 'sudo ./pi_fm_rds -freq 93 -audio', file.name, '-ps SATSUN -rt SATSUNRADIO'then I do:
print(cmd)but it comes out as this:
('sudo ./pi_fm_rds -freq 93 -audio', '/home/pi/Desktop/test.py', '-ps SATSUN -rt SATSUNRADIO')
instead of one big string.
Does anyone know why it does this? How can I fix this?
Thanks in advance for any help,
Eddie
Edit: file.name is defined in the code