forked from Tencent/CodeAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigloader.py
More file actions
30 lines (22 loc) · 827 Bytes
/
configloader.py
File metadata and controls
30 lines (22 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- encoding: utf-8 -*-
# Copyright (c) 2021-2025 Tencent
#
# This source code file is made available under MIT License
# See LICENSE for details
# ==============================================================================
"""拉取quickscan git仓库
"""
import os
import logging
from node.app import settings
from node.toolloader.gitload import GitLoader
logger = logging.getLogger(__name__)
class QuickScanConfigLoader(object):
@staticmethod
def load_config():
git_url = "https://github.com/TCATools/quickscan.git"
logger.info("load quickscan task config: %s" % git_url)
src_dir = os.path.join(settings.TOOL_BASE_DIR, 'quickscan')
GitLoader(scm_url=git_url, dest_dir=src_dir, print_enable=False).load()
if __name__ == '__main__':
QuickScanConfigLoader.load_config()