changeset 19:4d9a2a2fb8c0

print out the localhost url and other minor fixes
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 09 Mar 2013 23:03:48 -0800
parents d30118837c1a
children caf763fc1c7d
files setup.py wsgintegrate/main.py
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sun Dec 30 20:23:50 2012 -0800
+++ b/setup.py	Sat Mar 09 23:03:48 2013 -0800
@@ -5,7 +5,7 @@
 
 # description
 try:
-  filename = os.path.join(os.path.dirname(__file__), 'README.txt')
+  filename = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.txt')
   description = file(filename).read()
 except:
   description = ''
@@ -27,7 +27,7 @@
       author_email='jhammel@mozilla.com',
       url='http://k0s.org/',
       license='GPL',
-      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
+      packages=['wsgintegrate'],
       include_package_data=True,
       zip_safe=False,
       install_requires=dependencies,
--- a/wsgintegrate/main.py	Sun Dec 30 20:23:50 2012 -0800
+++ b/wsgintegrate/main.py	Sat Mar 09 23:03:48 2013 -0800
@@ -2,7 +2,11 @@
 
 """
 command line entry point for wsgintegrate
-serves an application from a .ini file 
+serves an application from a .ini file
+(really, a DAG)
+
+uses wsgiref, though could in theory make use of
+other WSGI servers, if available (TODO)
 """
 
 import sys
@@ -54,6 +58,7 @@
         return
 
     # serve it
+    print 'http://localhost:%d/' % options.port
     wsgiref(app=factory.load(), port=options.port)
 
 if __name__ == '__main__':