Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix-importFromPath' into hotf…
Browse files Browse the repository at this point in the history
…ix-cQtDeployer-dependencies
  • Loading branch information
Anthony Baker committed Dec 9, 2020
2 parents 9eff97f + 891d020 commit 2c446b1
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 @@ -492,7 +492,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 2c446b1

Please sign in to comment.