CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
pickleFileCreater Namespace Reference

Functions

def createPickleFile
 

Variables

string __author__ = "Aurelija"
 
string __date__ = "$2010-07-26 12.51.12$"
 

Function Documentation

def pickleFileCreater.createPickleFile (   fileName,
  listRule,
  path = os.getcwd() 
)

Definition at line 8 of file pickleFileCreater.py.

References join().

8 
9 def createPickleFile(fileName, listRule, path = os.getcwd()):
10 
11  dict = {}
12 
13  try:
14  for filePath, lines in listRule:
15  dict[filePath] = lines
16  file = open(join(path, fileName), 'w')
17  pickle.dump(dict, file)
18  file.close()
19  except TypeError:
20  print 'Wrong types'
21  except IOError:
22  print 'Cannot open %s file'%fileName
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Variable Documentation

string pickleFileCreater.__author__ = "Aurelija"

Definition at line 1 of file pickleFileCreater.py.

string pickleFileCreater.__date__ = "$2010-07-26 12.51.12$"

Definition at line 2 of file pickleFileCreater.py.