Fix lgtm errors in python codes.

This commit is contained in:
Viktor Kovacs 2021-03-27 13:09:33 +01:00
parent aefcd42084
commit c25fc7ac5c
4 changed files with 3 additions and 8 deletions

View File

@ -1,10 +1,8 @@
import os
import sys
import shutil
import subprocess
import zipfile
import json
import re
from lib import tools_lib as Tools
@ -62,7 +60,6 @@ def CreateDestinationDir (config, rootDir, websiteDir, version):
'o3dv/o3dv.website.min.js'
]
linePrefix = '\t'
for htmlFileName in ['index.html', 'embed.html', os.path.join ('info', 'index.html')]:
htmlFilePath = os.path.join (websiteDir, htmlFileName)
replacer = Tools.TokenReplacer (htmlFilePath, False)

View File

@ -1,7 +1,5 @@
import os
import sys
import subprocess
import json
import math
from lib import tools_lib as Tools

View File

@ -1,7 +1,5 @@
import os
import sys
import subprocess
import json
from lib import tools_lib as Tools
@ -11,5 +9,6 @@ def Main (argv):
imagesPath = os.path.abspath (os.path.join ('..', 'website', 'assets', 'images'))
for i in range (0, 5):
Tools.RunCommand (['svgo', '-r', imagesPath])
return 0
sys.exit (Main (sys.argv))

View File

@ -1,6 +1,5 @@
import os
import sys
import subprocess
import json
from lib import tools_lib as Tools
@ -30,5 +29,7 @@ def Main (argv):
replacer.ReplaceTokenFileLinks ('<!-- importer start -->', '<!-- importer end -->', importerFiles, None)
replacer.ReplaceTokenFileLinks ('<!-- website start -->', '<!-- website end -->', websiteFiles, None)
replacer.WriteToFile (htmlFilePath)
return 0
sys.exit (Main (sys.argv))