Skip to content

Commit

Permalink
Merge pull request #40 from efabless/enable_local_dependencies
Browse files Browse the repository at this point in the history
Added support for local dependencies
  • Loading branch information
RTimothyEdwards authored Mar 21, 2024
2 parents b6b0b4c + ce41756 commit b460606
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cace/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = '2.1.11'
__version__ = '2.1.12'

if __name__ == '__main__':
print(__version__, end='')
1 change: 1 addition & 0 deletions cace/common/cace_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def cace_read(filename, debug=False):
listkeys = [
'conditions',
'default_conditions',
'dependencies',
'variables',
'pins',
'measure',
Expand Down
15 changes: 14 additions & 1 deletion cace/common/cace_regenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,20 @@ def set_xschem_paths(dsheet, symbolpath, tclstr=None):
dependdir = os.path.join(
dependency['path'], dependency['name'], 'xschem'
)
tcllist.append('append XSCHEM_LIBRARY_PATH :' + dependdir)
if not os.path.isdir(dependdir):
dependdir = os.path.join(
dependency['path'], dependency['name']
)
if not os.path.isdir(dependdir):
print(
'Error: Cannot find xschem library in '
+ dependency['name']
)
print('Current directory is: ' + os.getcwd())
print('Dependdir is: ' + dependdir)
dependdir = None
if dependdir:
tcllist.append('append XSCHEM_LIBRARY_PATH :' + dependdir)

return ' ; '.join(tcllist)

Expand Down

0 comments on commit b460606

Please sign in to comment.