Skip to content

Commit

Permalink
madupload now takes an argument (filename)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Jan 5, 2015
1 parent 12a7b15 commit a2240fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions misc/madupload.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pathlib
import platform
import re
import sys

try:
import requests
Expand Down Expand Up @@ -35,6 +36,8 @@

upload_url = 'http://www.davek.com.au/td/uploaddata.asp'
upfile = "updated.prices"
if len(sys.argv) > 1:
upfile = sys.argv[1]


############################################################################
Expand All @@ -49,8 +52,8 @@
upload_url,
files={
'Filename': (
'updated.prices',
open('updated.prices', 'rb'),
upfile,
open(upfile, 'rb'),
'text/plain',
{
"Expires": '300',
Expand Down

0 comments on commit a2240fc

Please sign in to comment.