@@ -33,11 +33,6 @@ def loadini(struct, configfile):
33
33
"""Loads .ini configuration file and stores its values in struct"""
34
34
35
35
config_path = os .path .expanduser (configfile )
36
- if not os .path .isfile (config_path ) and configfile == default_config_path ():
37
- # We decided that '~/.bpython/config' still was a crappy
38
- # place, use XDG Base Directory Specification instead. Fall
39
- # back to old config, though.
40
- config_path = os .path .expanduser ('~/.bpython/config' )
41
36
42
37
config = ConfigParser ()
43
38
fill_config_with_default_values (config , {
@@ -183,17 +178,9 @@ def loadini(struct, configfile):
183
178
theme_filename = color_scheme_name + '.theme'
184
179
path = os .path .expanduser (os .path .join (get_config_home (),
185
180
theme_filename ))
186
- old_path = os .path .expanduser (os .path .join ('~/.bpython' ,
187
- theme_filename ))
188
-
189
- for path in [path , old_path ]:
190
- try :
191
- load_theme (struct , path , struct .color_scheme , default_colors )
192
- except EnvironmentError :
193
- continue
194
- else :
195
- break
196
- else :
181
+ try :
182
+ load_theme (struct , path , struct .color_scheme , default_colors )
183
+ except EnvironmentError :
197
184
sys .stderr .write ("Could not load theme '%s'.\n " %
198
185
(color_scheme_name , ))
199
186
sys .exit (1 )
0 commit comments