wxPython/wxGlade-0.9.1/install/update-po.py
def fileBaseOf(filename,withPath=0) :
    """fileBaseOf(filename,withPath) ---> string

    Return base name of filename.  The returned string never includes the extension.
    Use os.path.basename() to return the basename with the extension.  The 
    second argument is optional.  If specified and if set to 'true' (non zero) 
    the string returned contains the full path of the file name.  Otherwise the 
    path is excluded.
 
    [Example]
    >>> fn = 'd:/dev/telepath/tvapp/code/test.html'
    >>> fileBaseOf(fn)
    'test'
    >>> fileBaseOf(fn)
    'test'
    >>> fileBaseOf(fn,1)
    'd:/dev/telepath/tvapp/code/test'
    >>> fileBaseOf(fn,0)
    'test'
    >>> fn = 'abcdef'
    >>> fileBaseOf(fn)
    'abcdef'
    >>> fileBaseOf(fn,1)
    'abcdef'
    >>> fn = "abcdef."
    >>> fileBaseOf(fn)
    'abcdef'
    >>> fileBaseOf(fn,1)
    'abcdef'
    """
    pos = filename.rfind('.')
    if pos > 0:
        filename = filename[:pos]
    if withPath:
        return filename
    else:
        return os.path.basename(filename)
fileBaseOf(filename,withPath) ---> string

    Return base name of filename.  The returned string never includes the extension.
    Use os.path.basename() to return the basename with the extension.  The 
    second argument is optional.  If specified and if set to 'true' (non zero) 
    the string returned contains the full path of the file name.  Otherwise the 
    path is excluded.
 
    [Example]
    >>> fn = 'd:/dev/telepath/tvapp/code/test.html'
    >>> fileBaseOf(fn)
    'test'
    >>> fileBaseOf(fn)
    'test'
    >>> fileBaseOf(fn,1)
    'd:/dev/telepath/tvapp/code/test'
    >>> fileBaseOf(fn,0)
    'test'
    >>> fn = 'abcdef'
    >>> fileBaseOf(fn)
    'abcdef'
    >>> fileBaseOf(fn,1)
    'abcdef'
    >>> fn = "abcdef."
    >>> fileBaseOf(fn)
    'abcdef'
    >>> fileBaseOf(fn,1)
    'abcdef'
    
fileBaseOf(filename,withPath) ---> string
Return base name of filename.  The returned string never includes the extension.
Use os.path.basename() to return the basename with the extension.  The
second argument is optional.  If specified and if set to 'true' (non zero)
the string returned contains the full path of the file name.  Otherwise the
path is excluded.


fileBaseOf ( filename withPath ) --- > string Return base name of filename . The returned string never includes the extension . Use os . path . basename () to return the basename with the extension . The second argument is optional . If specified and if set to ' true ' ( non zero ) the string returned contains the full path of the file name . Otherwise the path is excluded .
def fileBaseOf(filename,withPath=0) :
    pos = filename.rfind('.')
    if pos > 0:
        filename = filename[:pos]
    if withPath:
        return filename
    else:
        return os.path.basename(filename)
def fileBaseOf ( filename , withPath = 0 ) : pos = filename . rfind ( '.' ) if pos > 0 : filename = filename [ : pos ] if withPath : return filename else : return os . path . basename ( filename )
fileBaseOf(filename,withPath) ---> string
Return base name of filename.
fileBaseOf ( filename withPath ) --- > string Return base name of filename .
"""fileBaseOf(filename,withPath) ---> string

    Return base name of filename.  The returned string never includes the extension.
    Use os.path.basename() to return the basename with the extension.  The 
    second argument is optional.  If specified and if set to 'true' (non zero) 
    the string returned contains the full path of the file name.  Otherwise the 
    path is excluded.
 
    [Example]
    >>> fn = 'd:/dev/telepath/tvapp/code/test.html'
    >>> fileBaseOf(fn)
    'test'
    >>> fileBaseOf(fn)
    'test'
    >>> fileBaseOf(fn,1)
    'd:/dev/telepath/tvapp/code/test'
    >>> fileBaseOf(fn,0)
    'test'
    >>> fn = 'abcdef'
    >>> fileBaseOf(fn)
    'abcdef'
    >>> fileBaseOf(fn,1)
    'abcdef'
    >>> fn = "abcdef."
    >>> fileBaseOf(fn)
    'abcdef'
    >>> fileBaseOf(fn,1)
    'abcdef'
    """
filename
withPath