From b2ce090b5556f7c5af0f04a2fdbda7e84781b808 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Thu, 5 Apr 2012 16:23:04 +0200 Subject: [PATCH 1/2] Fixed argparse/argv bug --- servefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servefile b/servefile index 835e383..efe1557 100755 --- a/servefile +++ b/servefile @@ -98,7 +98,7 @@ def main(): try: testit = open(args.filename, 'r') testit.close() - FileHandler.filePath = sys.argv[1] + FileHandler.filePath = args.filename FileHandler.fileName = os.path.basename(args.filename) FileHandler.fileLength = os.stat(args.filename)[ST_SIZE] except IOError: From f6cfefb3ea995fd92032ca74e0539dcd7051d4ba Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Thu, 5 Apr 2012 16:30:36 +0200 Subject: [PATCH 2/2] Version 0.3.2 + description updated --- servefile | 2 +- setup.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/servefile b/servefile index efe1557..e5b91f6 100755 --- a/servefile +++ b/servefile @@ -5,7 +5,7 @@ # Written by Sebastian Lohff (seba@seba-geek.de) # http://seba-geek.de/stuff/servefile/ -__version__ = '0.3.1' +__version__ = '0.3.2' import argparse import BaseHTTPServer diff --git a/setup.py b/setup.py index fe93b22..2905049 100755 --- a/setup.py +++ b/setup.py @@ -4,10 +4,10 @@ from distutils.core import setup setup( name='servefile', - description='Script to serve files via a small HTTP server', - long_description='Script to serve files via a small HTTP server. The server redirects all http requests to the file, so only IP and port must be given to another user to access the file.', + description='Serve files from shell via a small HTTP server', + long_description='Serve files from shell via a small HTTP server. The server redirects all HTTP requests to the file, so only IP and port must be given to another user to access the file. Its main purpose is to quickly send a file to users in your local network, independent of their current setup (OS/software).', platforms='posix', - version='0.3.1', + version='0.3.2', license='GPLv3 or later', url='http://seba-geek.de/stuff/servefile/', author='Sebastian Lohff',