Skip to content

Commit

Permalink
patch to fix importFromPath "invalid command name" errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Baker committed Dec 9, 2020
1 parent 3e38987 commit 891d020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distbuilder/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def sitePackagePath( packageName ):
def importFromPath( path, memberName=None ):
scriptDir, scriptName = splitPath( path )
moduleName = rootFileName( scriptName )
sysPath.append( scriptDir )
sysPath.insert( 0, scriptDir )
if memberName is None : exec( __IMPORT_TMPLT % (moduleName,) )
else: exec( __FROM_IMPORT_TMPLT % (moduleName, memberName) )
sysPath.remove( scriptDir )
Expand Down

0 comments on commit 891d020

Please sign in to comment.