~ubuntu-new-wave/anton/nw-config

« back to all changes in this revision

Viewing changes to nw_config/nw_core.py

  • Committer: Antonio
  • Date: 2010-01-21 16:36:56 UTC
  • Revision ID: toni@asparuh-20100121163656-zx0qzcg52b3prc1d
Delete tmp file for current theme. We don't need junch after the use of the config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        try:
53
53
            log_file = open(self.mCThemeNameFile, "r")
54
54
            theme_name = log_file.readline()
 
55
            log_file.close()
 
56
            #Clean up unwanted data
 
57
            os.remove(self.mCThemeNameFile)
55
58
            
56
59
            # check if current theme name equals with edited and is not prefixed (filename[1])
57
60
            if self.__strip(theme_name) == self.mThemeName and filename[1] == "":
58
61
                self.mEditedIsCurrent = True
59
62
 
60
 
            log_file.close()
61
 
            
62
63
        except Exception as inst: # handle exceptions here
63
64
            print type(inst)     # the exception instance
64
65
            print inst.args      # arguments stored in .args