def upload_package(conn, module, remotepath=None):
 if (remotepath is None):
  remotepath = conn.modules['distutils.sysconfig'].get_python_lib()
 localpath = os.path.dirname(module.__file__)
 upload_dir(conn, localpath, remotepath, ['.py', '.pyd', '.dll', '.so', '.zip'])

def upload_package ( conn , module , remotepath = None ) : if ( remotepath is None ) : remotepath = conn . modules [ 'distutils.sysconfig' ] . get_python_lib ( ) localpath = os . path . dirname ( module . __file__ ) upload_dir ( conn , localpath , remotepath , [ '.py' , '.pyd' , '.dll' , '.so' , '.zip' ] )
uploads the given package to the server .