diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2015-12-30 10:56:13 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2015-12-30 11:44:37 +0100 |
commit | 8966846f3e7a9d18503b9b8213e78ab5795103e2 (patch) | |
tree | 5e168d684f9174cd405b5252dfb4d38e84a960ed /libgsmhr | |
parent | ac967d20fde48bc6a2d5fdf412a8495e6254b99d (diff) |
libgsmhr/fetch_sources: Only use the filename and not any path
There shouldn't be any but somebody might be nasty :p
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'libgsmhr')
-rwxr-xr-x | libgsmhr/fetch_sources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgsmhr/fetch_sources.py b/libgsmhr/fetch_sources.py index 6a3cf00..a65fff2 100755 --- a/libgsmhr/fetch_sources.py +++ b/libgsmhr/fetch_sources.py @@ -24,7 +24,7 @@ def get_subfile_data(data, filename): def process_file(z, e): - fh = open(e.filename.lower(), 'w') + fh = open(os.path.basename(e.filename.lower()), 'w') d = z.read(e).replace('\r','') fh.write(d) fh.close() |