标签:desc shel 变量 ide pid amp project data 找不到
shell终端进行两步操作即可:
#!/bin/sh #chkconfig: 35 20 80 #description: start mount mydisk export PYTHONPATH=/mnt/udisk/project/myproject/wanwenyc /mnt/udisk/project/myenv/myfirstenv/bin/python /mnt/udisk/project/myproject/wanwenyc/WWSpider/mybase/spiderHanMan.py &
如上,在运行的shel脚本中将工程目录/mnt/udisk/project/myproject/wanwenyc加入到PYTHONPATH变量中
标签:desc shel 变量 ide pid amp project data 找不到
原文地址:https://www.cnblogs.com/jingzaixin/p/12763249.html