fix bug that only occurs on windows

This commit is contained in:
2023-06-07 11:54:38 +02:00
parent 7299250437
commit 7377625812
5 changed files with 11 additions and 3 deletions

View File

@@ -21,7 +21,11 @@ import time
importedModules = {} importedModules = {}
engineList = os.listdir( 'bin/engines' ); engineList = os.listdir( 'bin/engines' );
engineList.pop( 0 ) counter = 0;
for element in engineList:
if ( element == '__pycache__' ):
engineList.pop( counter );
counter += 1;
for element in engineList: for element in engineList:
importedModules[ element ] = importlib.import_module( 'bin.engines.' + element + '.' + element ).Scaler() importedModules[ element ] = importlib.import_module( 'bin.engines.' + element + '.' + element ).Scaler()

View File

@@ -1,4 +1,4 @@
curl -o ./pythonInstaller.exe https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe curl -o ./pythonInstaller.exe https://www.python.org/ftp/python/3.11.3/python-3.11.3-amd64.exe
wine pythonInstaller.exe wine pythonInstaller.exe

View File

@@ -14,7 +14,11 @@ import multiprocessing
import json import json
engineList = os.listdir( 'bin/engines' ); engineList = os.listdir( 'bin/engines' );
engineList.pop( 0 ) counter = 0;
for element in engineList:
if ( element == '__pycache__' ):
engineList.pop( counter );
counter += 1;
engineInfo = {} engineInfo = {}