示例#1
0
    def initialize(self,directorylocal,showresults):
        import os
        directorylocal = os.path.realpath(directorylocal)
        self.DirectoryLocal = directorylocal
        print('directorylocal:',directorylocal)
        files = []
        import os
        import readintomemorycreatemaindictionariesfromdirectorylocal
        for subdir, dirs, files in os.walk(directorylocal):
            break
        print('-- ---------------------')
        print('')        
        print('--','nameddictionary.py')
        print('--',str(len(files)) + ' files found.  Process of reading csv files starts now...')
        print('')        
        print('-- ---------------------')
        o = readintomemorycreatemaindictionariesfromdirectorylocal.build(directorylocal,showresults)
        
        if showresults == 1:
            print('111111 nameddictionary 1111111')

        #print('33333333333333333333333333333333333')
        self.NamedDictionaries = o.NamedDictionaries
        print(str(len(o.NamedDictionaries)) + ' symbols initialized within class nameddictionary.py')
示例#2
0
 def initialize(self,directorylocal):
     import readintomemorycreatemaindictionariesfromdirectorylocal
     self.MainDictionariesObject = readintomemorycreatemaindictionariesfromdirectorylocal.build(directorylocal)
# -*- coding: utf-8 -*-
"""
Created on Sun Feb  1 19:14:33 2015

@author: jmalinchak
"""

import readintomemorycreatemaindictionariesfromdirectorylocal
readintomemorycreatemaindictionariesfromdirectorylocal.build('C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\py\\downloads\\2015-02-01\\13\\15\\GDX')
# -*- coding: utf-8 -*-
"""
Created on Sun Feb  1 19:14:33 2015

@author: jmalinchak
"""

import readintomemorycreatemaindictionariesfromdirectorylocal
readintomemorycreatemaindictionariesfromdirectorylocal.build(
    'C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\py\\downloads\\2015-02-01\\13\\15\\GDX'
)