From 778945fea50726f5ec98009d8009b20abfffcdb7 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Tue, 16 Nov 2010 21:14:45 -0500 Subject: [PATCH] Added basename() to path This will be useful for finding the file referred to by a path. --- libsaria/path/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libsaria/path/__init__.py b/libsaria/path/__init__.py index d7e29fe3..983b5a97 100644 --- a/libsaria/path/__init__.py +++ b/libsaria/path/__init__.py @@ -7,6 +7,7 @@ exists = os.path.exists is_dir = os.path.isdir expand = os.path.expanduser splitext = os.path.splitext +basename = os.path.basename join = os.path.join makedir = os.mkdir rm = os.remove