#NEWLINE# def upload_package( conn , module , remotepath = None ) : #NEWLINE# #INDENT# "\n    uploads the given package to the server, storing it in `remotepath`. if \n    remotepath is None, it defaults to the server's site-packages. if the package\n    already exists, it is overwritten.\n    usage:\n        import xml\n        upload_package(conn, xml)\n    " #NEWLINE# if ( remotepath is None ) : #NEWLINE# #INDENT# remotepath = conn . modules [ 'distutils.sysconfig' ] . get_python_lib ( ) #NEWLINE# #UNINDENT# localpath = os . path . dirname ( module . __file__ ) #NEWLINE# upload_dir ( conn , module , remotepath , [ '.py' , '.pyd' , '.dll' , '.so' , '.zip' ] )