Skip to content

Commit

Permalink
Merge pull request #63 from vijaygit02/master
Browse files Browse the repository at this point in the history
Fix to avoid "gdb" extension for sde geodatabases after running custom commands
  • Loading branch information
vijaygit02 authored Oct 22, 2020
2 parents 37b404f + 6a6073e commit e966aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/solutionsLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ def executeCommand(self, com, index=0):
mosaicDataset = self.m_base.getXMLXPathValue('{}/MosaicDataset/Name'.format(ParentRoot), 'Name')
workspace = self.m_base.getXMLXPathValue('{}/WorkspacePath'.format(ParentRoot), 'WorkspacePath')
geoDatabase = self.m_base.getXMLXPathValue('{}/Geodatabase'.format(ParentRoot), 'Geodatabase')
mkGeoPath = '{}{}'.format(os.path.join(workspace, geoDatabase), self.m_base.const_geodatabase_ext.lower() if not geoDatabase.lower().endswith(self.m_base.const_geodatabase_ext.lower()) else '').replace('\\', '/')
mkGeoPath = '{}{}'.format(os.path.join(workspace, geoDatabase), self.m_base.const_geodatabase_ext.lower() if (not geoDatabase.lower().endswith(self.m_base.const_geodatabase_ext.lower()) and not geoDatabase.lower().endswith('sde')) else '').replace('\\', '/')
self.m_base.m_geodatabase = geoDatabase
self.m_base.m_workspace = workspace
data['mosaicdataset'] = self.m_base.m_mdName = mosaicDataset
Expand Down

0 comments on commit e966aab

Please sign in to comment.