MainBundle path has no '/' at the end when running in CommonJS.

This will make relative paths fail. For example if OBJJ_INCLUDE_PATHS has the path "../../MyLibrary".
MyLibrary will not be found when the path is joined with mainBundlePath without an ending '/'.
This is working when running in Browser.
This commit is contained in:
Martin Carlberg
2012-05-11 15:52:44 +02:00
parent c437537749
commit df2cf923e1
+1 -1
View File
@@ -22,7 +22,7 @@
#ifdef COMMONJS
var mainBundleURL = new CFURL("file:" + require("file").cwd());
var mainBundleURL = new CFURL("file:" + require("file").cwd()).asDirectoryPathURL();
#elif defined(BROWSER)
// This is automatic when importing, but we'd like these important URLs to
// be taken into consideration in the cache as well.