From ba25b691ff85ebb602c441e6fc39173971c5a81b Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Tue, 14 Nov 2006 11:05:09 -0500 Subject: [PATCH] Fix windows regression --- planet/splice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/splice.py b/planet/splice.py index e50f927..4853619 100644 --- a/planet/splice.py +++ b/planet/splice.py @@ -68,8 +68,8 @@ def splice(): # insert entry information items = 0 for mtime,file in dir: - if index: - base = file.split('/')[-1] + if index != None: + base = os.path.basename(file) if index.has_key(base) and index[base] not in sub_ids: continue try: