Should be and, and not or
This commit is contained in:
parent
85840b269f
commit
ffe3504e0a
@ -117,7 +117,7 @@ def get_locale_path(bundle_id):
|
|||||||
|
|
||||||
gconf_client = gconf.client_get_default()
|
gconf_client = gconf.client_get_default()
|
||||||
package_dir = gconf_client.get_string("/desktop/sugar/i18n/langpackdir")
|
package_dir = gconf_client.get_string("/desktop/sugar/i18n/langpackdir")
|
||||||
if package_dir is not None or package_dir is not '':
|
if package_dir is not None and package_dir is not '':
|
||||||
candidate_dirs[package_dir] = 1
|
candidate_dirs[package_dir] = 1
|
||||||
|
|
||||||
candidate_dirs[os.path.join(sys.prefix, 'share', 'locale')] = 0
|
candidate_dirs[os.path.join(sys.prefix, 'share', 'locale')] = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user