Hi All,

I've just tried this piece of code (taken from here: 
http://stackoverflow.com/questions/10265798/determine-project-root-from-a-running-node-js-application
 
), which indeed returns the app directory correctly but when trying to 
mount it, the app crashes.

EM_ASM(
fs = require('fs');
path = require('path');
appDir = path.dirname(require.main.filename);
console.log(appDir);//this seems to be correctly identified
FS.mount(NODEFS, { root: '.' }, appDir);//<<<<< crashes here
console.log('mounted '+appDir);//so I don't get this debug info on the 
console
);

Any help is welcome!


Thanks&regards,
r0ller

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to