Add "or '.'" after dirname() calls in hooke.command_stack and .playlist.
authorW. Trevor King <wking@drexel.edu>
Sun, 15 Aug 2010 11:48:46 +0000 (07:48 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 15 Aug 2010 11:48:46 +0000 (07:48 -0400)
commitadd823a749e722ffda90eaacfeafcac974358434
treef3748be049b4aa93e69781bb7e031bf7f162c0d9
parent634966e8a15bb0f3a3c5e0508316754a3ff91bed
Add "or '.'" after dirname() calls in hooke.command_stack and .playlist.

Because
  >>> import os.path
  >>> os.path.dirname('some-file')
  ''
  >>> os.path.dirname('some-file') or '.'
  '.'
and
  >>> import os
  >>> os.makedirs('')
  Traceback (most recent call last):
    ...
  OSError: [Errno 2] No such file or directory: ''
hooke/command_stack.py
hooke/playlist.py