Re: 在python中如何设置当前工作 目录
"大郎" <[email protected]> Sun, 20 Jan 2008 19:02:23 +0800
| Newsgroups | gmane.comp.python.chinese |
|---|---|
| Message-ID | <[email protected]> |
当前文件目录已经在可搜索的目录中了,要将其他目录加进来使用
import sys
sys.path.append('app/models')
你说的当前工组目录是指什么?
On 1/20/08, Joey <[email protected]> wrote:
>
> Hi All,
>
> python中可以使用 os.getcwd()获取当前工作目录,有没有方法来设置当前工组目录呢?
>
> 多谢.
>
> --
> Best Regard,
> Tang, Jiyu (Joey)
>
> _______________________________________________
> python-chinese
> Post: send [email protected]
> Subscribe: send subscribe to [email protected]
> Unsubscribe: send unsubscribe to [email protected]
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
--
http://del.icio.us/iexper
http://twitter.com/qichangxing
http://webpy.org
http://blog.hi0791.com (build with web.py)
http://www.baicai.com 百才招聘
Gtalk: iexper(at)gmail.com
_______________________________________________
python-chinese
Post: send [email protected]
Subscribe: send subscribe to [email protected]
Unsubscribe: send unsubscribe to [email protected]
Detail Info: http://python.cn/mailman/listinfo/python-chinese