|
29 | 29 | import sys
|
30 | 30 |
|
31 | 31 | try:
|
32 |
| - import subprocess |
| 32 | + import subprocess # nosec |
33 | 33 | except ImportError:
|
34 |
| - import subprocessdotnet as subprocess |
| 34 | + import subprocessdotnet as subprocess # nosec |
35 | 35 |
|
36 | 36 | is_iron_python = platform.python_implementation().lower() == "ironpython"
|
37 | 37 | is_linux = os.name == "posix"
|
@@ -99,7 +99,7 @@ def run_pyinstaller_from_c_python(oDesktop):
|
99 | 99 | command.extend([r'--wheel={}'.format(wheelpyaedt)])
|
100 | 100 |
|
101 | 101 | oDesktop.AddMessage("", "", 0, "Installing PyAEDT.")
|
102 |
| - return_code = subprocess.call(command) |
| 102 | + return_code = subprocess.call(command) # nosec |
103 | 103 |
|
104 | 104 | err_msg = "There was an error while installing PyAEDT."
|
105 | 105 | if is_linux:
|
@@ -153,7 +153,7 @@ def run_pyinstaller_from_c_python(oDesktop):
|
153 | 153 |
|
154 | 154 | command = r'"{}" "{}"'.format(python_exe, python_script)
|
155 | 155 | oDesktop.AddMessage("", "", 0, "Configuring PyAEDT panels in automation tab.")
|
156 |
| - ret_code = subprocess.call([python_exe, python_script]) |
| 156 | + ret_code = subprocess.call([python_exe, python_script]) # nosec |
157 | 157 | if ret_code != 0:
|
158 | 158 | oDesktop.AddMessage("", "", 2, "Error occurred configuring the PyAEDT panels.")
|
159 | 159 | return
|
@@ -249,9 +249,9 @@ def install_pyaedt():
|
249 | 249 | if not venv_dir.exists():
|
250 | 250 | print("Creating the virtual environment in {}".format(venv_dir))
|
251 | 251 | if args.version <= "231":
|
252 |
| - subprocess.run([sys.executable, "-m", "venv", str(venv_dir), "--system-site-packages"], check=True) |
| 252 | + subprocess.run([sys.executable, "-m", "venv", str(venv_dir), "--system-site-packages"], check=True) # nosec |
253 | 253 | else:
|
254 |
| - subprocess.run([sys.executable, "-m", "venv", str(venv_dir)], check=True) |
| 254 | + subprocess.run([sys.executable, "-m", "venv", str(venv_dir)], check=True) # nosec |
255 | 255 |
|
256 | 256 | if args.wheel and Path(args.wheel).exists():
|
257 | 257 | print("Installing PyAEDT using provided wheels argument")
|
|
0 commit comments