aymane-mzily / xot-uzg

Automatically exported from code.google.com/p/xot-uzg
0 stars 0 forks source link

XOT-UZG does not start when ancestors of cache dir do not exist #277

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to start XOT-UZG after the recent update (v 3.2.8), the application 
does not start. Relevant portion of debug log attached.

The problem occurs when the folder 
/home/xbmc/.xbmc/userdata/addon_data/net.rieter.xot/ doest not exist: the mkdir 
call only makes the tip of the directory structure, not the intermediate 
structure.

Workaround: make the directory yourself.
Fix: change  'os.mkdir(config.cacheDir)' to 'os.makedirs(config.cacheDir)', 
which creates the directory recrusively.

Original issue reported on code.google.com by carst.ta...@gmail.com on 20 Jul 2011 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
Please search the issues first before posting. This was already mentioned 
before including the workaround.

Original comment by basrie...@gmail.com on 20 Jul 2011 at 6:26

GoogleCodeExporter commented 9 years ago
I already implemented the os.makedirs in the next version.

Original comment by basrie...@gmail.com on 20 Jul 2011 at 6:28