allow spyder run
This commit is contained in:
parent
24a7d2208e
commit
e7551d4839
2
DR.py
2
DR.py
@ -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
|
||||
|
||||
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user