Welcome to mirror list, hosted at ThFree Co, Russian Federation.

extpkl.py « utils « mcf « modules « python « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8ae52969281e86ef9818a2e1bed720578a62af33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'''
Make either cPickle or pickle available as the virtual
module mcf.utils.pickle.  This allows you to use a single
import statement:
	
	from mcf.utils import extpkl, pickle

and then use that pickle, knowing that you have the best
available pickling engine.
'''
defaultset = ('import cPickle', 'cPickle')
import sys, mcf.utils
from mcf.utils import cpickle_extend
try:
	import cPickle
	pickle = cPickle
except:
	import pickle
sys.modules['mcf.utils.pickle'] = mcf.utils.pickle = pickle