File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -83,21 +83,19 @@ def loadConfig():
8383 Config ['myPC' ] = {'mac' : '00:2a:a0:cf:83:15' }
8484 Config ['myLaptop' ] = {'mac' : '00:13:0d:e4:60:61' }
8585 writeConfig (Config ) # Generate default conf file
86- Config .read (conf_path + "/wol_config.ini" )
87- sections = Config .sections ()
88- dict1 = {}
89- for section in sections :
90- options = Config .options (section )
86+ Config .read (conf_path + "/wol_config.ini" )
87+ sections = Config .sections ()
88+ dict1 = {}
89+ for section in sections :
90+ options = Config .options (section )
9191
92- sectkey = section
93- myconfig [sectkey ] = {}
92+ sectkey = section
93+ myconfig [sectkey ] = {}
9494
95+ for option in options :
96+ myconfig [sectkey ][option ] = Config .get (section , option )
9597
96- for option in options :
97- myconfig [sectkey ][option ] = Config .get (section ,option )
98-
99-
100- return myconfig # Useful for testing
98+ return myconfig # Useful for testing
10199
102100def usage ():
103101 print ('Usage: wol.py [hostname]' )
You can’t perform that action at this time.
0 commit comments