Ionshard / pyxis

A Command Line Player for SIRIUS and XM Sattelite Radio
http://www.ionshard.com/pyxis
GNU General Public License v2.0
19 stars 13 forks source link

Config fails if ~/.config is missing #3

Closed johnrabotnik closed 14 years ago

johnrabotnik commented 14 years ago

If the ~/.config directory does not exist then the config fails:

Traceback (most recent call last):
  File "bin/pyxis", line 41, in <module>
    Interface(opts, station)
  File "/home/john/test/pyxis/pyxis/Interface.py", line 61, in __init__
    self.config = Config()
  File "/home/john/test/pyxis/pyxis/Config.py", line 63, in __init__
    self.create()
  File "/home/john/test/pyxis/pyxis/Config.py", line 88, in create
    os.mkdir(self.confpath)

Testing this on Ubuntu Server 9.04 which didn't seem to have this directory present. Doing this works around it:

$ mkdir ~/.config
johnrabotnik commented 14 years ago

Fixed here: kasuko/pyxis@9b32f930318f5d226291

Ionshard commented 14 years ago

Thanks, nice catch.