-
Notifications
You must be signed in to change notification settings - Fork 84
Description
If oblivion.ini exists in the install directory, it's read into a ConfigParser.ConfigParser object (Mopy/initialization.py 157-158). By default the read() method raises ParsingError if the file contains "options without values". To prevent this the ConfigParser object has to be created with allow_no_value=True.
PS. I'm not actually trying to use a local oblivion.ini; I'm working on a wizard function for proposal (to get the value of an ini setting) and created the local ini to verify that my function followed the rule indicated on uesp:
Oblivion reads the Oblivion.ini in the directory where it exists first, and only if bUseMyGames is non-existent or set to 1 does it then look for My Documents\My Games\Oblivion.ini. In other words, both can exist simultaneously, and only the value of bUseMyGames in the Oblivion.ini directory where Oblivion.exe is run from will actually matter.
Edit: initialization.py looks for the wrong setting too:
if get_ini_option(oblivionIni, u'bUseMyGamesDirectory') == u'0':
Should be
if get_ini_option(oblivionIni, u'bUseMyGames') == u'0':