You are here:
Foswiki
>
LabstaffWeb Web
>
LabstaffHowto
>
PythonHowto
(09 Jul 2008,
JoeyArmstrong
)
Edit
Attach
Python
Web Resources
Install module simplejson
Modify python's searchpath to find your local modules
Web Resources
url
Description
http://www.python.org
Project home page
http://docs.python.org/tut
Tutorial
http://books.google.com
Google Books -- Oreilly
Install module simplejson
% tar zxvf simplejson-1.9.1.tgz
% cd simplejson-1.9.1
% PYTHONPATH=${HOME}/.python:${HOME}/.python/lib/python2.5/site-packages
% export PYTHONPATH
% mkdir -p ${HOME}/.python/lib/python2.5/site-packages
% python ez_setup.py --install-dir=${HOME}/.python # install latest ez_setup module
% python ez_setup.py --install-dir=${HOME}/.python . # install simplejson
Google Code -- SimpleJSON
Modify python's searchpath to find your local modules
export PYTHONPATH=${HOME}/.python:$PYTHONPATH
within a python script, foobar.py
import sys;
sys.path.append("/cs/${login}/.python");
--
JoeyArmstrong
- 09 Jul 2008
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew wiki text
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r2 - 09 Jul 2008,
JoeyArmstrong
LabstaffWeb
Log In
Register
LabstaffWeb Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
BioInformaticsWeb
HassResources
LabstaffWeb
LandgrafWeb
Main
Sandbox
System
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback