Change SCPATH logic to avoid weird docgen error
Setting SCPATH to '' if it's not already set causes a blank entry to be
added to the SCPATH, which will cause the docs generator to try and find
dyanmic modules in your root directory.
@@ -75,11 +75,11 @@ class Chip:
'siliconcompiler',
scriptdir)
- # Set SCPATH to an empty string if it does not exist.
- if not 'SCPATH' in os.environ:
- os.environ['SCPATH'] = ''
+ if 'SCPATH' in os.environ:
#Getting environment path (highest priority)
scpaths = str(os.environ['SCPATH']).split(':')
+ else:
+ scpaths = []
#Add the root Path
scpaths.append(rootdir)
