Fix lgtm errors in python codes.
This commit is contained in:
parent
aefcd42084
commit
c25fc7ac5c
@ -1,10 +1,8 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
|
||||||
import zipfile
|
import zipfile
|
||||||
import json
|
import json
|
||||||
import re
|
|
||||||
|
|
||||||
from lib import tools_lib as Tools
|
from lib import tools_lib as Tools
|
||||||
|
|
||||||
@ -62,7 +60,6 @@ def CreateDestinationDir (config, rootDir, websiteDir, version):
|
|||||||
'o3dv/o3dv.website.min.js'
|
'o3dv/o3dv.website.min.js'
|
||||||
]
|
]
|
||||||
|
|
||||||
linePrefix = '\t'
|
|
||||||
for htmlFileName in ['index.html', 'embed.html', os.path.join ('info', 'index.html')]:
|
for htmlFileName in ['index.html', 'embed.html', os.path.join ('info', 'index.html')]:
|
||||||
htmlFilePath = os.path.join (websiteDir, htmlFileName)
|
htmlFilePath = os.path.join (websiteDir, htmlFileName)
|
||||||
replacer = Tools.TokenReplacer (htmlFilePath, False)
|
replacer = Tools.TokenReplacer (htmlFilePath, False)
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
|
||||||
import json
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
from lib import tools_lib as Tools
|
from lib import tools_lib as Tools
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
|
||||||
import json
|
|
||||||
|
|
||||||
from lib import tools_lib as Tools
|
from lib import tools_lib as Tools
|
||||||
|
|
||||||
@ -11,5 +9,6 @@ def Main (argv):
|
|||||||
imagesPath = os.path.abspath (os.path.join ('..', 'website', 'assets', 'images'))
|
imagesPath = os.path.abspath (os.path.join ('..', 'website', 'assets', 'images'))
|
||||||
for i in range (0, 5):
|
for i in range (0, 5):
|
||||||
Tools.RunCommand (['svgo', '-r', imagesPath])
|
Tools.RunCommand (['svgo', '-r', imagesPath])
|
||||||
|
return 0
|
||||||
|
|
||||||
sys.exit (Main (sys.argv))
|
sys.exit (Main (sys.argv))
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from lib import tools_lib as Tools
|
from lib import tools_lib as Tools
|
||||||
@ -30,5 +29,7 @@ def Main (argv):
|
|||||||
replacer.ReplaceTokenFileLinks ('<!-- importer start -->', '<!-- importer end -->', importerFiles, None)
|
replacer.ReplaceTokenFileLinks ('<!-- importer start -->', '<!-- importer end -->', importerFiles, None)
|
||||||
replacer.ReplaceTokenFileLinks ('<!-- website start -->', '<!-- website end -->', websiteFiles, None)
|
replacer.ReplaceTokenFileLinks ('<!-- website start -->', '<!-- website end -->', websiteFiles, None)
|
||||||
replacer.WriteToFile (htmlFilePath)
|
replacer.WriteToFile (htmlFilePath)
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
sys.exit (Main (sys.argv))
|
sys.exit (Main (sys.argv))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user