Recent Notes
Displaying keyword search results 1 - 6
Created by Dr. Xi on August 01, 2012 11:40:19
Last update: August 01, 2012 11:40:19
Use copyfile in shutil :
$ python
Python 2.7.3 (default, Apr 20 2012, 22...
Created by freyo on August 17, 2011 12:29:46
Last update: August 17, 2011 12:29:46
In Android.mk , you can define LOCAL_JARJAR_RULES like this:
LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.t...
and in jarjar-rules.txt define a rule like this:
rule org.bouncycastle.** com.android.@0
The build will change all org.bouncycastle to com.android.org.bouncycastle . Therefore, in your classes which are dependent on the library produced, the import statements should look like:
import com.android.org.bouncycastle...
Help for the jarjar utility (in prebuilt/common/jarjar/ ):
$ java -jar jarjar-1.0rc8.jar
Jar Jar Links - ...
Created by Dr. Xi on August 02, 2011 15:44:45
Last update: August 02, 2011 15:44:45
The time module provides functions for time manipulation:
$ python
Python 2.7 (r27:82500, Sep 16 2010, 18...
Created by Dr. Xi on October 18, 2009 04:25:25
Last update: October 18, 2009 04:25:25
start python with python -v
import django and print version:
Type "help", "copyright", "credits" or "license" f...
Created by Dr. Xi on October 06, 2008 23:31:56
Last update: October 06, 2008 23:35:08
Use file.write instead of print .
Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
...
Created by Dr. Xi on October 06, 2008 18:39:53
Last update: October 06, 2008 18:39:53
Python modules are searched in the list of directories given by the variable sys.path which is initialized from:
the directory containing the input script (or the current directory)
the list of directories specified by the environment variable PYTHONPATH
the installation-dependent default.
peaches@bashful:~/tmp$ export PYTHONPATH=`pwd`
...