Project/Project.py

branch
5_2_x
changeset 1573
a9923eff0e32
parent 1509
c0b5e693b0eb
child 1571
0db59c82f096
equal deleted inserted replaced
1569:86af50c0061b 1573:a9923eff0e32
2835 return True 2835 return True
2836 else: 2836 else:
2837 for entry in self.pdata["OTHERS"]: 2837 for entry in self.pdata["OTHERS"]:
2838 if newfn.startswith(entry): 2838 if newfn.startswith(entry):
2839 return True 2839 return True
2840
2841 if Utilities.isWindowsPlatform():
2842 # try the above case-insensitive
2843 newfn = newfn.lower()
2844 for group in ["SOURCES", "FORMS", "INTERFACES",
2845 "RESOURCES", "TRANSLATIONS", "OTHERS"]:
2846 for entry in self.pdata[group]:
2847 if entry.lower() == newfn:
2848 return True
2849 for entry in self.pdata["OTHERS"]:
2850 if newfn.startswith(entry.lower()):
2851 return True
2852
2840 return False 2853 return False
2841 2854
2842 def isProjectSource(self, fn): 2855 def isProjectSource(self, fn):
2843 """ 2856 """
2844 Public method used to check, if the passed in filename belongs to the project 2857 Public method used to check, if the passed in filename belongs to the project

eric ide

mercurial