Project/ProjectResourcesBrowser.py

changeset 4627
a33560bd2d2d
parent 4624
aebdbffe02b6
child 4631
5c1a96925da4
equal deleted inserted replaced
4626:c891c7ad6b60 4627:a33560bd2d2d
868 dirname, filename = os.path.split(os.path.splitext(ifn)[0]) 868 dirname, filename = os.path.split(os.path.splitext(ifn)[0])
869 ofn = os.path.join( 869 ofn = os.path.join(
870 dirname, self.RCFilenameFormatRuby.format(filename)) 870 dirname, self.RCFilenameFormatRuby.format(filename))
871 else: 871 else:
872 return 872 return
873 # TODO: check for files contained in resources as well
874 # - read the resource *.rc file and extract file names
875 # - add the resource file, if one file is newer as the
876 # compiled Python/Ruby source
877 if not os.path.exists(ofn) or \ 873 if not os.path.exists(ofn) or \
878 os.stat(ifn).st_mtime > os.stat(ofn).st_mtime: 874 os.stat(ifn).st_mtime > os.stat(ofn).st_mtime:
879 changedResources.append(fn) 875 changedResources.append(fn)
880 elif self.__checkResourcesNewer(ifn, os.stat(ofn).st_mtime): 876 elif self.__checkResourcesNewer(ifn, os.stat(ofn).st_mtime):
881 changedResources.append(fn) 877 changedResources.append(fn)

eric ide

mercurial