@@ -66,23 +66,23 @@ def chmod(self):
6666 os .chmod ( self .executablePath , mode )
6767 return True
6868
69- def compile ( self ):
69+ def compile ( self ):
7070 """
7171 Try to compile the tool.
7272 """
7373 if not self .maycompile :
7474 logger .error ("Asking to compile, but auto-compilation turned off for %s" , self .name )
7575 return
76- logger .debug ( "Trying to compile %s" , self .name )
77- cmd = "cd %s ; make" % self . srcPath
76+ logger .info ( f "Trying to compile { self .name } " )
77+ cmd = f "cd { self . srcPath } ; make"
7878 out = executor .getoutput (cmd )
7979 # out = subprocess.check_output ( cmd, shell=True, universal_newlines=True )
8080 logger .debug (out )
8181 if not os .path .exists ( self .executablePath ):
8282 if self .maycompile : ## should have worked
83- logger .error ( "Compilation of %s failed. Is the %s compiler installed?" % ( self . name , self . compiler ) )
83+ logger .error ( f "Compilation of { self . name } failed. Is the { self . compiler } compiler installed?" )
8484 sys .exit ()
85- logger .info ( "Compilation of %s succeeded!" % ( self .name ) )
85+ logger .info ( f "Compilation of { self .name } succeeded!" )
8686 return True
8787
8888
@@ -96,10 +96,10 @@ def checkInstallation(self, compile=True ):
9696 """
9797 if not os .path .exists (self .executablePath ):
9898 if compile :
99- logger .warning ("%s executable not found. Trying to compile it now. This may take a while." % self . name )
99+ logger .warning ( f" { self . name } executable not found. Trying to compile it now. This may take a while." )
100100 self .compile ()
101101 else :
102- logger .warning ("%s executable not found." % self . name )
102+ logger .warning ( f" { self . name } executable not found." )
103103 self .complain ()
104104 return False
105105 if not os .path .exists (self .executablePath ):
0 commit comments