CMS 3D CMS Logo

Functions | Variables
pickleFileCreater Namespace Reference

Functions

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

Variables

 __author__
 
 __date__
 

Function Documentation

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

Definition at line 8 of file pickleFileCreater.py.

References join().

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

Variable Documentation

pickleFileCreater.__author__
private

Definition at line 1 of file pickleFileCreater.py.

pickleFileCreater.__date__
private

Definition at line 2 of file pickleFileCreater.py.