allow spyder run

This commit is contained in:
shenjack 2023-12-02 10:23:28 +08:00
parent 24a7d2208e
commit e7551d4839
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 2 deletions

2
DR.py
View File

@ -24,11 +24,11 @@ def print_path() -> None:
print(f'{sys.argv[0]=}')
print(f'{Path.cwd()=}')
print(f'{Path(__file__).absolute()=}')
print(f'{Path(__file__).parent=}')
def modify_path() -> None:
os.chdir(Path(__file__).parent) # 将运行路径切换到文件位置 防止bug
sys.path.append('./Difficult_Rocket') # 添加local path
sys.path.append('./libs') # 添加 libs path

View File

@ -24,7 +24,7 @@ enum LoadState {
}
#[pyfunction]
fn get_version_str() -> String { "0.2.22.0".to_string() }
fn get_version_str() -> String { "0.2.23.0".to_string() }
#[pyfunction]
fn test_call(py_obj: &PyAny) -> PyResult<bool> {