File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -202,13 +202,13 @@ def parse_line(cls, line):
202
202
req .hash_name , req .hash = get_hash_info (fragment )
203
203
req .subdirectory = fragment .get ('subdirectory' )
204
204
req .path = groups ['path' ]
205
- elif line . startswith ( './' ):
206
- if os .path .exists ( line ) and os . path . isfile (line ) and line .lower ().endswith (".whl" ):
205
+ elif os . path . exists ( line ):
206
+ if os .path .isfile (line ) and line .lower ().endswith (".whl" ):
207
207
match = re .match (WHL_FILE_REGEX , os .path .basename (line ))
208
208
if match :
209
209
req .name = match .group ("name" )
210
- elif os .path .exists ( line ) and os . path . isdir (line ):
211
- setup_file = open (line + "/ setup.py" , "r" )
210
+ elif os .path .isdir (line ):
211
+ setup_file = open (os . path . join ( line , " setup.py") , "r" )
212
212
setup_content = setup_file .read ()
213
213
name_search = NAME_EQ_REGEX .search (setup_content )
214
214
if name_search :
You can’t perform that action at this time.
0 commit comments