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: