smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
979 stars 173 forks source link

当我使用Python获取性能数据时,我都选择noLog=True时,依旧会创建一个空的report文件夹,希望可以不创建 #212

Closed 986379041 closed 1 year ago

986379041 commented 1 year ago

venv/Lib/site-packages/solox/public/common.py 210行:

class File:

    def __init__(self, fileroot='.'):
        self.fileroot = fileroot
        self.report_dir = self.get_repordir()

305行:

    def get_repordir(self):
        report_dir = os.path.join(os.getcwd(), 'report')
        if not os.path.exists(report_dir):
            os.mkdir(report_dir)
        return report_dir
rafa0128 commented 1 year ago

基本没影响不改了,改了怕漏兼容其他地方