diff --git a/servefile b/servefile index f1b8004..58fef2d 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 @@ -114,7 +114,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: 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',