2006年07月21日 星期五 16:19
linux在shell命令行下 >>>os.system('export DJANGO_SETTINGS_MODULE=settings') 不能修改,而 >>> os.putenv('DJANGO_SETTINGS_MODULE','settings') 却可以修改,为什么呢?
2006年07月21日 星期五 16:55
On 7/21/06, 鳄鱼 <crocodile.liu at 163.com> wrote: > > linux在shell命令行下 > >>>os.system('export DJANGO_SETTINGS_MODULE=settings') > 不能修改,而 > >>> os.putenv('DJANGO_SETTINGS_MODULE','settings') > 却可以修改,为什么呢? > 因为在启动python时,已经将环境变量存在os.environ中了。需要重新运行才行吧。 putenv可能就是直接修改了environ了。 -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit
2006年07月21日 星期五 17:48
Õâ¾ÍºÃ±È£¬ÄãÔÚbashÖÐÓÖÔËÐÐÁËÒ»¸öbash È»ºóÄãÔÚ×ÓbashÀïÃæÐÞ¸ÄÁË»·¾³±äÁ¿£¬Í˳öµ½¸¸bashÀïÃæÊDz»»á±£ÁôÐÞ¸ÄµÄ Best Regards, Zachary Wu (Îâ°~ÀÚ) Software Engineer, Enterprise Content Management FVT, IBM China Software Development Lab Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235 Internet: xiaoleiw at cn.ibm.com Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di, Beijing 100085, P.R. China python-chinese-bounces at lists.python.cn дÓÚ 2006-07-21 16:19:15: > > linuxÔÚshellÃüÁîÐÐÏ > >>>os.system('export DJANGO_SETTINGS_MODULE=settings') > ²»ÄÜÐ޸ģ¬¶ø > >>> os.putenv('DJANGO_SETTINGS_MODULE','settings') > È´¿ÉÒÔÐ޸ģ¬ÎªÊ²Ã´ÄØ£¿ > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060721/5ac1a93b/attachment.htm
2006年07月23日 星期日 21:04
父子进程。 On Friday 21 July 2006 16:19, 鳄鱼 wrote: > linux在shell命令行下 > > >>>os.system('export DJANGO_SETTINGS_MODULE=settings') > > 不能修改,而 > > >>> os.putenv('DJANGO_SETTINGS_MODULE','settings') > > 却可以修改,为什么呢? > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- PogoLinux(Shanghai),Inc. http://www.pogolinux.com.cn (8621)50308860 Ext.31
Zeuux © 2025
京ICP备05028076号