Skip to content

Commit

Permalink
Avoid using python3 as default python interpreter.
Browse files Browse the repository at this point in the history
Now if you want to build seafile in a system that has ptthon2/3,
you need to use the following command:
 1. ./configure PYTHON=/usr/bin/python2.7
 2. make
 3. make install
  • Loading branch information
gnehzuil authored and lins05 committed Jan 4, 2013
1 parent 099f45f commit 9ef4a81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ccnet-web.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ $1 == "start" ]; then
if [ -f /tmp/ccnet-web.pid ]; then
kill -9 `cat /tmp/ccnet-web.pid`
fi
python main.py 127.0.0.1:13420 &
@PYTHON@ main.py 127.0.0.1:13420 &
echo $! > /tmp/ccnet-web.pid
elif [ $1 == "stop" ]; then
kill -9 `cat /tmp/ccnet-web.pid`
Expand Down
2 changes: 1 addition & 1 deletion web/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8

import gettext
Expand Down

0 comments on commit 9ef4a81

Please sign in to comment.