fix ddt settings.p to settings3.p optimise environement (venv python 3.8.9 mac os)

This commit is contained in:
--=FurtiF™=-- 2022-08-21 17:32:04 +02:00
parent 406a5f12b7
commit ed753d8477
46 changed files with 118 additions and 116 deletions

6
.gitignore vendored
View File

@ -1,5 +1,4 @@
/.idea/
/.DS_Store
/EcuDacia/
/EcuRsm/
/Output/
@ -22,6 +21,9 @@ MTCSAVE/
NML/
Params/
Python27/
/build/
/.intino/
/venv/
*.pyc
*.p
*.zip
@ -29,9 +31,9 @@ Python27/
*.acf
*.tdv
*.bin
*.DS_Store
pyren3/history.txt
pyren3/parser.out
pyren3/parsetab.py
pyren3/scen_appr_4valves.py
pyren3/scen_ecri_fap2.py

View File

@ -1,4 +1,5 @@
@echo off
echo Run's app ...
python27\python.exe _pyren_launcher.py
rem uses python3
python3.exe _pyren3_launcher.py
pause

View File

@ -12,6 +12,6 @@
#./venv/bin/activate
printf "Runs app ...\n"
#./venv/bin/python ./_pyren_launcher.py
python ./_pyren_launcher.py
python3 ./_pyren3_launcher.py
#printf "Deactivate venv ..."
#./venv/bin/deactivate

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, os
import mod_globals

View File

@ -1,10 +1,10 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, os
import time
import mod_globals
import pyren
import pyren3
cmdb = '''
#v1.0 ;AC P; ATZ ; Z ; reset all

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ______ ___ ___ ___ ___ ___ ______ __ _______
# | ___| \ \ / / / \ | \/ | | _ \ | | | ____|
@ -13,7 +13,7 @@ import time
import mod_globals
import mod_ecu
import pyren
import pyren3
os.chdir(os.path.dirname(os.path.realpath(sys.argv[0])))

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, os
import time
@ -7,7 +7,7 @@ import mod_db_manager
import mod_globals
import mod_ecu
import pyren
import pyren3
os.chdir(os.path.dirname(os.path.realpath(sys.argv[0])))

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, os
#import serial

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, os
import serial

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import re

View File

@ -631,7 +631,7 @@ class DDTLauncher():
ecu['xml'],
ecu['dump'],
ecu['ses']]
fout.write(str(';'.join(e)).encode("ascii", "ignore") + '\n')
fout.write(';'.join(e) + '\n')
fout.close()
copyfile(filename, "./savedCAR_prev.csv")

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys, os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import gc

View File

@ -44,16 +44,16 @@ class settings():
pass
def load(self):
if not os.path.isfile("../settings.p"):
if not os.path.isfile("../settings3.p"):
self.save()
f = open('../settings.p', 'rb')
f = open('../settings3.p', 'rb')
tmp_dict = pickle.load(f)
f.close()
self.__dict__.update(tmp_dict)
def save(self):
f = open('../settings.p', 'wb')
f = open('../settings3.p', 'wb')
pickle.dump(self.__dict__, f)
f.close()

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from xml.dom.minidom import parse
import xml.dom.minidom

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_utils import Choice
from mod_utils import ChoiceFromDict

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_ecu_service import ecu_mnemolocation
from mod_utils import pyren_encode

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_ecu_mnemonic import *
from mod_ecu_screen import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_ecu_mnemonic import *
from mod_utils import Choice

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_ecu_service import *

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_ecu_mnemonic import *
from mod_utils import Choice

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_utils import Choice
from xml.dom.minidom import parse

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_utils import Choice
from mod_utils import pyren_encode

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from mod_ecu_mnemonic import *
from mod_utils import Choice

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
module contains class for working with ELM327
version: 180408

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
opt_debug = False
debug_file = None

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import csv
import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
sys.path.insert(0,"../..")

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Version: 180402

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import sys
@ -14,8 +14,8 @@ from mod_utils import pyren_encode
from mod_utils import KBHit
import xml.dom.minidom
def run( elm, ecu, command, data ):
def run(elm, ecu, command, data):
clearScreen()
header = '[' + command.codeMR + '] ' + command.label
@ -36,7 +36,6 @@ def run( elm, ecu, command, data ):
value = pyren_encode(mod_globals.language_dict[id])
return value
DOMTree = xml.dom.minidom.parse(mod_db_manager.get_file_from_clip(data))
ScmRoom = DOMTree.documentElement

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Scenarium usage example