Compare commits

..

No commits in common. "8c0795eb9ca9523b3bbe3ccf9ecfeb565dd11459" and "8df3458b2a4b4611749321208be83be78da7315f" have entirely different histories.

4 changed files with 3 additions and 17 deletions

View File

@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif
## Information/信息 ## Information/信息
- Version / 版本: 0.2.0 - Version / 版本: 0.2.0-rc.9
- Author / 作者: shenjackyuanjie <3695888@qq.com> - Author / 作者: shenjackyuanjie <3695888@qq.com>
> [shenjackyuanjie](https://github.com/shenjackyuanjie) > [shenjackyuanjie](https://github.com/shenjackyuanjie)

View File

@ -1,13 +1,5 @@
# Change log / 更新日志 # Change log / 更新日志
## 0.2.0-rc.10
### lndl-nuitka
- 将 `lndl-nuitka` 中的 `subprocess.run` 方法修改为
- Linux / MacOS: `subprocess.run(shell=False)`
- Windows: `subprocess.run(shell=True)`
## 0.2.0-rc.9 ## 0.2.0-rc.9
### lndl-nuitka ### lndl-nuitka

View File

@ -4,7 +4,7 @@
# All rights reserved # All rights reserved
# ------------------------------- # -------------------------------
__version__ = '0.2.0' __version__ = '0.2.0-rc.9'
from typing import TYPE_CHECKING from typing import TYPE_CHECKING

View File

@ -5,7 +5,6 @@
# ------------------------------- # -------------------------------
import sys import sys
import time import time
import platform
import subprocess import subprocess
from pathlib import Path from pathlib import Path
@ -93,12 +92,7 @@ def display_config(subprocess_command: list) -> None:
def run_nuitka(subprocess_command: list) -> None: def run_nuitka(subprocess_command: list) -> None:
start_time = time.time() start_time = time.time()
# shell true on windows subprocess.run(subprocess_command, shell=False, check=True)
# shell false on linux
if platform.system() == "Windows":
subprocess.run(subprocess_command, shell=True, check=True)
else:
subprocess.run(subprocess_command, shell=False, check=True)
end_time = time.time() end_time = time.time()
print(f"Time Elapsed: {end_time - start_time} seconds") print(f"Time Elapsed: {end_time - start_time} seconds")