Skip to content

Commit

Permalink
Glob.glob is giving us local path in the current dir. Get rid of it, …
Browse files Browse the repository at this point in the history
…take the last path part
  • Loading branch information
themartorana committed Nov 25, 2013
1 parent f3a1b73 commit 179f7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpip2pi/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def pip2tgz(argv=sys.argv):
import glob
num_pakages = 0
for file_name in glob.glob('./*.tar.gz'):
file_name = file_name.replace('.tar.gz', '')
file_name = file_name.split('/')[:-1].replace('.tar.gz', '')
file_name_parts = file_name.split('-')
file_name = '-'.join(file_name_parts[:-1])
version = file_name_parts[-1]
Expand Down

0 comments on commit 179f7d6

Please sign in to comment.