Skip to content

Commit 5ddf899

Browse files
authored
fix p09, __file__ variable should not be quoted
1 parent c26ac10 commit 5ddf899

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)