# history support pconfDir = os.path.expanduser(os.environ['PANDA_CONFIG_ROOT']) if not os.path.exists(pconfDir): os.makedirs(pconfDir) # set grid source file globalConf = GlobalConfig.getConfig() if globalConf.grid_src != '' and not os.environ.has_key( 'PATHENA_GRID_SETUP_SH'): os.environ['PATHENA_GRID_SETUP_SH'] = globalConf.grid_src # make tmp dir tmpDir = tempfile.mkdtemp() # set tmp dir in Client Client.setGlobalTmpDir(tmpDir) # look for PandaTools package for path in sys.path: if path == '': path = '.' if os.path.exists(path) and os.path.isdir(path) and 'pandatools' in os.listdir(path) \ and os.path.exists('%s/pandatools/__init__.py' % path): # make symlink for module name os.symlink('%s/pandatools' % path, '%s/taskbuffer' % tmpDir) break sys.path = [tmpDir] + sys.path # total time TotalCPUTime = 0