|
48 | 48 | - a distributed scancode package is self-contained
|
49 | 49 | - a non technical user does not have any extra installation to do, in
|
50 | 50 | particular there is no compilation needed at installation time.
|
51 |
| -
|
52 | 51 | - we have few dependencies on the OS.
|
53 |
| -
|
54 |
| - - that we control closely the version of these executables and how they were |
| 52 | + - we control closely the version of these executables and how they were |
55 | 53 | built to ensure sanity, especially on Linux where several different
|
56 | 54 | (oftentimes older) version may exist in the path for a given distro.
|
57 | 55 | For instance this applies to tools such as 7z, binutils and file.
|
58 | 56 | """
|
59 | 57 |
|
60 |
| -LOG = logging.getLogger(__name__) |
| 58 | +logger = logging.getLogger(__name__) |
61 | 59 |
|
62 | 60 | # current directory is the root dir of this library
|
63 | 61 | curr_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
@@ -93,9 +91,9 @@ def execute(cmd, args, root_dir=None, cwd=None, env=None, to_files=False):
|
93 | 91 | # though we can execute command that just happen to be in the path
|
94 | 92 | shell = True if on_windows else False
|
95 | 93 |
|
96 |
| - LOG.debug('Executing command %(cmd)r as %(full_cmd)r with: env=%(env)r, ' |
97 |
| - 'shell=%(shell)r, cwd=%(cwd)r, stdout=%(sop)r, stderr=%(sep)r.' |
98 |
| - % locals()) |
| 94 | + logger.debug('Executing command %(cmd)r as %(full_cmd)r with: env=%(env)r, ' |
| 95 | + 'shell=%(shell)r, cwd=%(cwd)r, stdout=%(sop)r, stderr=%(sep)r.' |
| 96 | + % locals()) |
99 | 97 |
|
100 | 98 | proc = None
|
101 | 99 | try:
|
|
0 commit comments