Hi
I am trying to use a Python script to automatically upload a file to eBay FileExchange on a daily basis. I have written the following Python script to check files in a folder named in the format of the date it is to be uploaded (eg. 2015-04-06):

I have replaced my actual token with MYTOKEN for security reasons.
I would like to know how to correctly format the line in my Python script to run the curl command for each file found in the folder. I know that the code I have to run curl is incorrect in my Python script, and have given up messing around with double and single quotes. If anyone knows how to correctly call the curl command in a Python script with variables in the command line please help!

I gave up messing around with multiple double quotes for the filename variable - I just made sure the file names had no spaces so I didn't need quotes. Maybe using pycURL would be better coding, but as long as it works I am happy.

Last edited by trlaing on Thu Jun 04, 2015 11:36 am, edited 1 time in total.