Skip to content

Commit

Permalink
* fix error importing simplejson
Browse files Browse the repository at this point in the history
  - just append lib to sys.path, instead of working through path madness
* add link to generated source
  • Loading branch information
jangxyz committed Mar 29, 2009
1 parent 4eb6bff commit ebeed6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion me2chatnote.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def fetch_access_token():
# save to springnote
page = Springnote(ACCESS_TOKEN).page('springmemo', 2996232)
page.source = u"""<div>
이 페이지는 me2chatnote에 의해서 자동으로 생성된 페이지입니다. <br />
이 페이지는 <a href='http://wiki.github.com/jangxyz/me2chatnote'>me2chatnote</a>에 의해서 자동으로 생성된 페이지입니다. <br />
%s의 글들 중 'woc'라는 태그가 들어간 글을 수집했습니다.
</div>""" % ', '.join(users)
page.source += """<ul><li>%s</li></ul>""" % '</li><li>'.join(items)
Expand Down
4 changes: 3 additions & 1 deletion me2day.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/python
import urllib
import urllib, sys, os
from datetime import datetime

sys.path.append( os.path.abspath('lib') )
import lib.simplejson as json

#ME2DAY_DATETIME_FORMAT="%Y-%m-%dT%X+0900"
Expand Down

0 comments on commit ebeed6e

Please sign in to comment.