summaryrefslogtreecommitdiffstats
path: root/libgsmhr/fetch_sources.py
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-12-30 10:56:13 +0100
committerSylvain Munaut <tnt@246tNt.com>2015-12-30 11:44:37 +0100
commit8966846f3e7a9d18503b9b8213e78ab5795103e2 (patch)
tree5e168d684f9174cd405b5252dfb4d38e84a960ed /libgsmhr/fetch_sources.py
parentac967d20fde48bc6a2d5fdf412a8495e6254b99d (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/fetch_sources.py')
-rwxr-xr-xlibgsmhr/fetch_sources.py2
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()