Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee4ee54

Browse files
committed
Use vm.import when running with -m
1 parent72febb7 commitee4ee54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/main.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ fn run_command(vm: &VirtualMachine, mut source: String) -> PyResult {
9898

9999
fnrun_module(vm:&VirtualMachine,module:&str) ->PyResult{
100100
debug!("Running module {}", module);
101-
let current_path =PathBuf::from(".");
102-
import::import_module(vm, current_path, module)
101+
vm.import(module,&vm.ctx.new_tuple(vec![]),0)
103102
}
104103

105104
fnrun_script(vm:&VirtualMachine,script_file:&str) ->PyResult{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp