Kendall
Kendall

Reputation: 5245

Accessing/ referencing external files in node-webkit application

I'm developing a node-webkit application that i want to distribute as an .exe file. However. I need to have dynamic content editable by the end user would i be able to link/ reference to external files and folders in my html/ css file using a relative path( maybe if i designate a particle folder)

Upvotes: 0

Views: 56

Answers (1)

dimacpp
dimacpp

Reputation: 758

A packed node-webkit application can identify its starting folder this way:

var appDir = require('path').dirname(process.execPath);

Upvotes: 1

Related Questions