@@ -265,24 +265,24 @@ def add(dn, fn):
265265
266266 # HTML5 remote files
267267 if renpy .emscripten or os .environ .get ('RENPY_SIMULATE_DOWNLOAD' , False ):
268- index_filename = os .path .join (renpy .config .gamedir ,'renpyweb_remote_files.txt' )
268+ index_filename = os .path .join (renpy .config .gamedir , 'renpyweb_remote_files.txt' )
269269 if os .path .exists (index_filename ):
270270 files = game_files
271271 with open (index_filename , 'rb' ) as remote_index :
272272 while True :
273273 f = remote_index .readline ()
274274 metadata = remote_index .readline ()
275- if f == '' or metadata == '' : # end of file
275+ if f == '' or metadata == '' : # end of file
276276 break
277277
278278 f = f .rstrip ("\r \n " )
279279 metadata = metadata .rstrip ("\r \n " )
280- (entry_type ,entry_size ) = metadata .split (' ' )
280+ (entry_type , entry_size ) = metadata .split (' ' )
281281 if entry_type == 'image' :
282282 entry_size = [int (i ) for i in entry_size .split (',' )]
283283
284284 add ('/game' , f )
285- remote_files [f ] = {'type' :entry_type ,'size' :entry_size }
285+ remote_files [f ] = {'type' :entry_type , 'size' :entry_size }
286286
287287 for i in renpy .config .searchpath :
288288
@@ -684,7 +684,7 @@ def transfn(name):
684684
685685 add_auto (fn )
686686
687- if os .path .exists (fn ):
687+ if os .path .isfile (fn ):
688688 return fn
689689
690690 raise Exception ("Couldn't find file '%s'." % name )
0 commit comments