Changeset 1086

Show
Ignore:
Timestamp:
05/01/08 16:17:18 (13 years ago)
Author:
jwoithe
Message:

Remove duplicate configuration directory existence check since Pieter beat me to it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer/ffado_registration.py

    r1085 r1086  
    149149                elif dlg.choice == "nosend": 
    150150                    pass 
    151         # write the updated config.  Make sure the destination path exists first. 
    152         cpath = os.path.dirname(self.config_filename) 
    153         # This test should be more robust but it will do for most cases. 
    154         if (not(os.path.exists(cpath))): 
    155                 os.makedirs(cpath, 0755) 
     151        # write the updated config 
    156152        f = open(self.config_filename, "w+") 
    157153        self.parser.write(f)