Last change
on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago |
CHG: done with Archive/19101-20495
|
File size:
1.2 KB
|
Rev | Line | |
---|
[20498] | 1 | Index: ../trunk-jpl/src/m/classes/organizer.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/classes/organizer.py (revision 19569)
|
---|
| 4 | +++ ../trunk-jpl/src/m/classes/organizer.py (revision 19570)
|
---|
| 5 | @@ -97,12 +97,16 @@
|
---|
| 6 | #Get model path
|
---|
| 7 | if not isinstance(string,(str,unicode)):
|
---|
| 8 | raise TypeError("argument provided is not a string")
|
---|
| 9 | - path=os.path.join(self.repository,self.prefix+'.step#'+string+'.python')
|
---|
| 10 | + path1=os.path.join(self.repository,self.prefix+'.step#'+string+'.python')
|
---|
| 11 | + path2=os.path.join(self.repository,string)
|
---|
| 12 |
|
---|
| 13 | #figure out if the model is there, otherwise, we have to use the default path supplied by user.
|
---|
| 14 | - if whichdb(path):
|
---|
| 15 | - md=loadmodel(path)
|
---|
| 16 | + if whichdb(path1):
|
---|
| 17 | + md=loadmodel(path1)
|
---|
| 18 | return md
|
---|
| 19 | + elif whichdb(path2):
|
---|
| 20 | + md=loadmodel(path2)
|
---|
| 21 | + return md
|
---|
| 22 |
|
---|
| 23 | #If we are here, the model has not been found. Try trunk prefix if provided
|
---|
| 24 | if self.trunkprefix:
|
---|
| 25 | @@ -114,7 +118,7 @@
|
---|
| 26 | md=loadmodel(path2)
|
---|
| 27 | return md
|
---|
| 28 | else:
|
---|
| 29 | - raise IOError("Could not find '%s'" % path)
|
---|
| 30 | + raise IOError("Could not find '%s'" % path1)
|
---|
| 31 | #}}}
|
---|
| 32 | def perform(self,string): # {{{
|
---|
| 33 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.