Add "or '.'" after dirname() calls in hooke.command_stack and .playlist.
[hooke.git] / hooke / playlist.py
index 352617ce90120c7c2afd6698300d61293535096d..ee586095e4a5795144f9fe1ec886ae23b939bda8 100644 (file)
@@ -370,7 +370,7 @@ class FilePlaylist (Playlist):
         """Saves the playlist in a XML file.
         """
         self.set_path(path)
-        dirname = os.path.dirname(self.path)
+        dirname = os.path.dirname(self.path) or '.'
         if makedirs == True and not os.path.isdir(dirname):
             os.makedirs(dirname)
         with open(self.path, 'w') as f: