MCPcopy Create free account
hub / github.com/answer-huang/dSYMTools / getFilePath

Method getFilePath

wxPython/dSYM.py:189–205  ·  view source on GitHub ↗
(self, rootPath)

Source from the content-addressed store, hash-verified

187
188 #获取最后需要的文件地址
189 def getFilePath(self, rootPath):
190 if rootPath.endswith("dSYM"):
191 self.dsymFilePath = rootPath
192 fileName = os.path.basename(rootPath)
193 else:
194 dsymsPath = os.path.join(rootPath,'dSYMs')
195 listFiles = os.listdir(dsymsPath)
196 for fileName in listFiles:
197 if fileName.endswith('dSYM'):
198 #dsym文件路径
199 self.dsymFilePath = os.path.join(dsymsPath, fileName)
200
201 appPath = os.path.join(self.dsymFilePath,'Contents/Resources/DWARF')
202 if os.path.isdir(appPath):
203 if len(os.listdir(appPath)) is not 0:
204 #命令行中需要的文件路径
205 self.appFilePath = os.path.join(appPath,os.listdir(appPath)[0])
206
207 #显示关于我的界面
208 def OnAboutMe(self, event):

Callers 1

ListBoxClickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected