diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-08-09 13:58:50 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-08-09 13:58:50 +0300 |
commit | db911f46e14421b6f7807ab3179d3b078212347b (patch) | |
tree | 44f48933c7e80da607d53e7e98f380bd049d44ce /tools | |
parent | 5bc9fceed3002e0b24a3510f12779fc1243c4c07 (diff) |
Fix file packager to generate a virtual filesystem with '/' as path separators when the host is Windows.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/file_packager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index 9861e330..33ccebad 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -40,7 +40,7 @@ TODO: You can also provide .crn files yourself, pre-crunched. With this o ''' import os, sys, shutil, random, uuid, ctypes - +import posixpath import shared from shared import Compression, execute, suffix, unsuffixed from subprocess import Popen, PIPE, STDOUT @@ -217,7 +217,7 @@ for file_ in data_files: if file_['dstpath'].endswith('/'): # If user has submitted a directory name as the destination but omitted the destination filename, use the filename from source file file_['dstpath'] = file_['dstpath'] + os.path.basename(file_['srcpath']) # make destination path always relative to the root - file_['dstpath'] = os.path.normpath(os.path.join('/', file_['dstpath'])) + file_['dstpath'] = posixpath.normpath(os.path.join('/', file_['dstpath'])) if DEBUG: print >> sys.stderr, 'Packaging file "' + file_['srcpath'] + '" to VFS in path "' + file_['dstpath'] + '".' |