Fixed filename retrieval

This commit is contained in:
Felipe Martin 2018-09-30 00:45:23 +02:00
parent ab281fd3e4
commit 5dde6db342
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class File:
@property
def filename(self):
return os.path.splitext(self.path)[0]
return os.path.splitext(os.path.basename(self.path))[0]
@property
def extension(self):