** Changed in: openlp Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/706396
Title: Trunk will not start on Win XP due to no HOME variable Status in OpenLP - Worship Presentation Software: Fix Released Bug description: When starting openlp.pyw, it falls over before it even starts with: Traceback (most recent call last): File "openlp.pyw", line 283, in <module> main() File "openlp.pyw", line 245, in main log_path = AppLocation.get_directory(AppLocation.CacheDir) File "C:\Documents and Settings\Jonathan\My Documents\bzr\openlp\trunk\openlp\ core\utils\__init__.py", line 142, in get_directory u'Application Support', u'openlp'), File "C:\Python27\lib\ntpath.py", line 96, in join assert len(path) > 0 TypeError: object of type 'NoneType' has no len() This looks as though it is due to \openlp\core\utils\__init__.py it attempts to look up the os.getenv(u'HOME') variable regardless of system, and this doesn't exist on Windows XP causing the surrounding os.path.join to fail. return _get_os_dir_path(u'openlp', os.path.join(os.getenv(u'HOME'), u'Library', u'Application Support', u'openlp'), None, os.path.join(os.getenv(u'HOME'), u'.openlp'), dir_type) _______________________________________________ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp