diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-23 16:31:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-23 16:31:59 -0700 |
commit | d2ebb6200b9ad0fe4f1376e192382383352f7799 (patch) | |
tree | 9b19bf4089df7f38f4cdff0ef32ab0837e3a29cb /tools/file_packager.py | |
parent | b90b3ea970f3cc65020730f33ff97c4f2bc2a860 (diff) |
handle ./ in file packaging
Diffstat (limited to 'tools/file_packager.py')
-rw-r--r-- | tools/file_packager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index 17398a35..22216321 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -159,6 +159,7 @@ for file_ in data_files: data_files = filter(lambda file_: not os.path.isdir(file_['name']), data_files) for file_ in data_files: + if file_['name'].startswith('./'): file_['name'] = file_['name'][2:] # remove redundant ./ prefix file_['name'] = file_['name'].replace(os.path.sep, '/') # name in the filesystem, native and emulated file_['localname'] = file_['name'] # name to actually load from local filesystem, after transformations |