Project/ProjectResourcesBrowser.py

changeset 4624
aebdbffe02b6
parent 4563
881340f4bd0c
child 4627
a33560bd2d2d
equal deleted inserted replaced
4622:8800cbcbb496 4624:aebdbffe02b6
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
873 if not os.path.exists(ofn) or \ 877 if not os.path.exists(ofn) or \
874 os.stat(ifn).st_mtime > os.stat(ofn).st_mtime: 878 os.stat(ifn).st_mtime > os.stat(ofn).st_mtime:
875 changedResources.append(fn) 879 changedResources.append(fn)
876 elif self.__checkResourcesNewer(ifn, os.stat(ofn).st_mtime): 880 elif self.__checkResourcesNewer(ifn, os.stat(ofn).st_mtime):
877 changedResources.append(fn) 881 changedResources.append(fn)

eric ide

mercurial