Fix path for translators/styles directories in symlinked dev Standalone build

This commit is contained in:
Simon Kornblith 2013-08-29 11:46:30 -04:00
parent a5bc68bc17
commit 2f275a187c

View file

@ -512,10 +512,11 @@ Zotero.Schema = new function(){
xpiZipReader.open(installLocation);
if(Zotero.isStandalone && !xpiZipReader.hasEntry("translators.index")) {
// Symlinked Standalone build
var installLocation2 = installLocation.parent;
installLocation2.append("translators");
if(installLocation2.exists()) {
// Symlinked dev Standalone build
var installLocation2 = installLocation.parent,
translatorsDir = installLocation2.clone();
translatorsDir.append("translators");
if(translatorsDir.exists()) {
installLocation = installLocation2;
isUnpacked = true;
xpiZipReader.close();