neymiş efendim anlaşılmıyormuş da bilmemneymiş.
This commit is contained in:
+4
-2
@@ -50,8 +50,10 @@ def get_file_type(path, pinfo_list, install_dir):
|
|||||||
list"""
|
list"""
|
||||||
|
|
||||||
Match = lambda x: [match for match in glob.glob(install_dir + x) if join(install_dir, path).find(match) > -1]
|
Match = lambda x: [match for match in glob.glob(install_dir + x) if join(install_dir, path).find(match) > -1]
|
||||||
Sort = lambda x: o(x.reverse(), x)
|
|
||||||
o = lambda oo, o:o
|
def Sort(x):
|
||||||
|
x.sort(reverse=True)
|
||||||
|
return x
|
||||||
|
|
||||||
best_matched_path = Sort([pinfo.path for pinfo in pinfo_list if Match(pinfo.path)])[0]
|
best_matched_path = Sort([pinfo.path for pinfo in pinfo_list if Match(pinfo.path)])[0]
|
||||||
info = [pinfo for pinfo in pinfo_list if best_matched_path == pinfo.path][0]
|
info = [pinfo for pinfo in pinfo_list if best_matched_path == pinfo.path][0]
|
||||||
|
|||||||
Reference in New Issue
Block a user