mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Get rid of multiple file support.
This commit is contained in:
parent
2234c4486e
commit
ab0a57822d
1 changed files with 3 additions and 15 deletions
|
@ -17,32 +17,20 @@ class DNABulkLoader:
|
|||
def loadDNABulk(dnaStorage, file):
|
||||
dnaLoader = DNALoader()
|
||||
fileu = '../resources/' + file
|
||||
fileo = 'resources/' + file
|
||||
try:
|
||||
dnaLoader.loadDNAFile(dnaStorage, fileu)
|
||||
except:
|
||||
dnaLoader.loadDNAFile(dnaStorage, fileo)
|
||||
dnaLoader.loadDNAFile(dnaStorage, fileu)
|
||||
|
||||
def loadDNAFile(dnaStorage, file):
|
||||
print 'Reading DNA file...', file
|
||||
dnaLoader = DNALoader()
|
||||
fileu = '../resources/' + file
|
||||
fileo = 'resources/' + file
|
||||
try:
|
||||
node = dnaLoader.loadDNAFile(dnaStorage, fileu)
|
||||
except:
|
||||
node = dnaLoader.loadDNAFile(dnaStorage, fileo)
|
||||
node = dnaLoader.loadDNAFile(dnaStorage, fileu)
|
||||
if node.node().getNumChildren() > 0:
|
||||
return node.node()
|
||||
|
||||
def loadDNAFileAI(dnaStorage, file):
|
||||
dnaLoader = DNALoader()
|
||||
fileu = '../resources/' + file
|
||||
fileo = 'resources/' + file
|
||||
try:
|
||||
data = dnaLoader.loadDNAFileAI(dnaStorage, fileu)
|
||||
except:
|
||||
data = dnaLoader.loadDNAFileAI(dnaStorage, fileo)
|
||||
data = dnaLoader.loadDNAFileAI(dnaStorage, fileu)
|
||||
return data
|
||||
|
||||
def setupDoor(a, b, c, d, e, f):
|
||||
|
|
Loading…
Reference in a new issue