BaseCommand.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:sublime-commandbox 作者: Ortus-Solutions 项目源码 文件源码
def run(self, task_name=None, task_flag=None, silent=False, paths=[]):
        self.searchable_folders = [os.path.dirname(path) for path in paths] if len(paths) > 0 else self.window.folders()
        self._working_dir = ""
        self._working_dir = self.projectPath()
        print( "Working Directory: " + self._working_dir )
        self.settings = Settings()
        self.setup_data_from_settings()

        self.process = CrossPlatformProcess( self )
        self.non_blocking=False
        self.results_in_new_tab=False
        self.task_name = task_name
        self.task_flag = task_flag if task_name is not None and task_flag is not None else self.get_flag_from_task_name()
        self.silent = silent
        self.output_view = self.window.get_output_panel("commandbox_output")

        self.work()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号