def load_settings(self, project_dir):
project_setting_file = RemoteGDBSettings.project_setting_file(project_dir)
if not os.path.exists(project_setting_file):
return False
try:
with open(project_setting_file) as data_file:
json_str = ""
for line in data_file.readlines():
line = line.strip()
if len(line) == 0:
continue
if line.startswith("//"):
continue
json_str += line
json_str += "\n"
self.data = json.loads(json_str)
except Exception as err:
print(err)
# sublime.error_message("some errors exist in project setting file!")
return False
return True
remote_gdb_settings.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录