-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议修改 start.sh 里添加 python2 #23
Comments
好的,下次把python2指定放入启动脚本。 发布包中的python27是win32版本,不是linux版本。 |
加上了,请测试 |
好了,linux 基本可以开箱即用。 ➜ ~ cat .config/autostart/xx-net.desktop 如果没有一个额外的 cd 切换目录的话,gnome-terminal 就会提示找不到 launcher/start.py 文件。 start.sh 能处理下目录的问题么。 |
osx 下面添加开机启动项是弄了个 .command 文件,就能塞到设置 用户和组 登录项 里面了 $ cat ./XX-Net-1.0.9/start.command if hash python2 2>/dev/null; then 一样要个 cd 切换到相应目录才行。 建议处理下目录并放一个 .command 文件。 |
赞一个,start.sh 切换到脚本所在目录,应该有这个技巧,上网搜一下加上就好 |
➜ ~ cat .config/autostart/xx-net.desktop ➜ ~ cat app/XX-Net-1.0.9/start.sh if hash python2 2>/dev/null; then 搜到了,就这一句 cd |
Cool ! |
1.1.0 已经加上,哦耶 |
建议修改为 python2 launcher/start.py
原因:
linux下, python 3 和 python 2同时装了的时候,会默认 python3 打开了 start.py
然后报错:
File "launcher/start.py", line 20
except yaml.YAMLError, exc:
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: