diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/file_packager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index a764b746..9bf781e4 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -252,7 +252,7 @@ for file_ in data_files: filename = file_['name'] if file_['mode'] == 'embed': # Embed - code += '''Module['FS_createDataFile']('/', '%s', %s, true, true);\n''' % (os.path.basename(filename), str(map(ord, open(file_['localname'], 'rb').read()))) + code += '''Module['FS_createDataFile']('/%s', '%s', %s, true, true);\n''' % (os.path.dirname(filename), os.path.basename(filename), str(map(ord, open(file_['localname'], 'rb').read()))) elif file_['mode'] == 'preload': # Preload varname = 'filePreload%d' % counter |