Skip to content

Commit 5e5e86b

Browse files
authored
Merge pull request yidao620c#163 from kyan001/patch-2
fix p09, __file__ variable should not be quoted
2 parents ea8f936 + 5ddf899 commit 5e5e86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c10/p09_add_directories_to_sys_path.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
import sys
5656
from os.path import abspath, join, dirname
57-
sys.path.insert(0, join(abspath(dirname('__file__')), 'src'))
57+
sys.path.insert(0, join(abspath(dirname(__file__)), 'src'))
5858
5959
这将src目录添加到path里,和执行插入步骤的代码在同一个目录里。
6060

0 commit comments

Comments
 (0)