lemonEX / zhpy

Automatically exported from code.google.com/p/zhpy
0 stars 0 forks source link

zhpy不能搜索当前目录 #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 在开发目录下有foo.py
2. 启动zhpy命令行
3. import foo
4. sys.path.insert(0, '')
5. import foo

What is the expected output? What do you see instead?
第三步出错

What version of the product are you using? On what operating system?
winxp sp2
python 2.5.1
zhpy 0.94, 1.0

Please provide any additional information below.
根据python教程(Python Tutorial) 6.1.1节,应当包含当前路径。

Original issue reported on code.google.com by ren...@gmail.com on 8 Oct 2007 at 11:04

GoogleCodeExporter commented 8 years ago
fixed in [514], thanks!
http://zhpy.googlecode.com/svn/trunk/zhpy/interpreter.py

Original comment by gasolin on 9 Oct 2007 at 3:56

GoogleCodeExporter commented 8 years ago
This only fix the console part. And the problem occurs on zhpy cmd line, too.

zhpy abc.py
import foo, bar
def calculate():
    print "abc";

calculate();
No module named foo

Original comment by ren...@gmail.com on 9 Oct 2007 at 5:47

GoogleCodeExporter commented 8 years ago
fixed in [515], thanks :)

http://zhpy.googlecode.com/svn/trunk/zhpy/zhpy.py

check 'try_run' function

Original comment by gasolin on 9 Oct 2007 at 9:42

GoogleCodeExporter commented 8 years ago
It's fixed. Thanks.

Original comment by ren...@gmail.com on 9 Oct 2007 at 12:25

GoogleCodeExporter commented 8 years ago

Original comment by gasolin on 10 Oct 2007 at 1:29