Compare commits

..

2 Commits

Author SHA1 Message Date
8c0795eb9c
0.2.0 release (logger wip 2023-11-26 01:33:28 +08:00
2fa871addf
rc 10 2023-11-25 23:48:52 +08:00
4 changed files with 17 additions and 3 deletions

View File

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

View File

@ -1,5 +1,13 @@
# 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
### lndl-nuitka

View File

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

View File

@ -5,6 +5,7 @@
# -------------------------------
import sys
import time
import platform
import subprocess
from pathlib import Path
@ -92,6 +93,11 @@ def display_config(subprocess_command: list) -> None:
def run_nuitka(subprocess_command: list) -> None:
start_time = time.time()
# shell true on windows
# 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()
print(f"Time Elapsed: {end_time - start_time} seconds")