Skip to content

Commit

Permalink
catch uninstalled cases
Browse files Browse the repository at this point in the history
  • Loading branch information
durack1 committed Dec 6, 2016
1 parent 01e1c96 commit 92212f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/python/io/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'condaRootEnvironment':'root environment',
'condaDefaultEnvironment':'default environment'
}

for count,strBit in enumerate(iter(out.splitlines())):
for count1,pairKey in enumerate(pairs):
if pairs[pairKey] in strBit:
Expand All @@ -65,15 +66,16 @@
'VTKVersion':'vtk-cdat-'
}

#print condaDefaultEnvironment
condaMetaDir = os.path.join(condaDefaultEnvironment,'conda-meta')
listScour = os.listdir(condaMetaDir)
for count,strBit in enumerate(listScour):
for count1,pairKey in enumerate(pairs):
if pairs[pairKey] in ['','matplotlib-']:
vars()[pairKey] = 'None'
if pairs[pairKey] in ['']:
vars()[pairKey] = 'None' ; # Case unimplemented
elif pairs[pairKey] in strBit:
vars()[pairKey] = strBit.replace(pairs[pairKey],'').replace('.json','')
else:
vars()[pairKey] = 'None' ; # Case uninstalled

# Sort
keyList = pairs.keys()
Expand Down

0 comments on commit 92212f4

Please sign in to comment.