Show
Ignore:
Timestamp:
08/14/07 21:15:58 (6 years ago)
Author:
ggpolo
Message:

Added window for changing startup settings. Other minor changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/ggpolo/umitInventory/TLBase.py

    r1258 r1360  
    100100 
    101101    return startup 
     102 
     103 
     104def write_startup_setting(setting, value): 
     105    """ 
     106    Set a new value for a startup setting. 
     107    """ 
     108    section = "Startup" 
     109     
     110    if not configparser.has_section(section): 
     111        return # would be better to raise some Exception 
     112     
     113    configparser.set(section, setting, value) 
     114    configparser.write(open(settings_file, 'w')) 
    102115 
    103116