[Happydoc-checkins] CVS: HappyDoc3/happydoclib utils.py,NONE,1.1
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2002-12-15 17:00:47
|
Update of /cvsroot/happydoc/HappyDoc3/happydoclib In directory sc8-pr-cvs1:/tmp/cvs-serv990/happydoclib Added Files: utils.py Log Message: General utility functions. --- NEW FILE: utils.py --- #!/usr/bin/env python # # $Id: utils.py,v 1.1 2002/12/15 17:00:44 doughellmann Exp $ # # Copyright 2002 Doug Hellmann. # # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in all # copies and that both that copyright notice and this permission # notice appear in supporting documentation, and that the name of Doug # Hellmann not be used in advertising or publicity pertaining to # distribution of the software without specific, written prior # permission. # # DOUG HELLMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN # NO EVENT SHALL DOUG HELLMANN BE LIABLE FOR ANY SPECIAL, INDIRECT OR # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # """ """ __rcs_info__ = { # # Creation Information # 'module_name' : '$RCSfile: utils.py,v $', 'rcs_id' : '$Id: utils.py,v 1.1 2002/12/15 17:00:44 doughellmann Exp $', 'creator' : 'Doug Hellmann <do...@he...>', 'project' : 'UNSPECIFIED', 'created' : 'Sun, 15-Dec-2002 10:12:56 EST', # # Current Information # 'author' : '$Author: doughellmann $', 'version' : '$Revision: 1.1 $', 'date' : '$Date: 2002/12/15 17:00:44 $', } try: __version__ = __rcs_info__['version'].split(' ')[1] except: __version__ = '0.0' # # Import system modules # import os # # Import Local modules # # # Module # def isSomethingThatLooksLikeDirectory(path): return (os.path.isdir(path) or os.path.islink(path) or os.path.ismount(path) ) |