Python interpreter/encoding fix

This commit is contained in:
2023-04-13 15:55:49 +02:00
parent a04bd162a5
commit 28ce38779c
7 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,5 @@
#!/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations from __future__ import annotations
from typing import Union from typing import Union

View File

@ -1,4 +1,4 @@
#!/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from typing import Iterator, Dict, Any, Tuple from typing import Iterator, Dict, Any, Tuple

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from typing import List, Optional from typing import List, Optional

View File

@ -1,4 +1,4 @@
#!/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from typing import Dict, Any, Tuple, Optional, List, Iterable from typing import Dict, Any, Tuple, Optional, List, Iterable

View File

@ -1,5 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import pypyodbc import pypyodbc
pypyodbc.lowercase = False pypyodbc.lowercase = False
conn = pypyodbc.connect( conn = pypyodbc.connect(
r"Driver={Microsoft Access Driver (*.mdb, *.accdb)};" + r"Driver={Microsoft Access Driver (*.mdb, *.accdb)};" +

View File

@ -1,6 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import win32com.client import win32com.client
appl = win32com.client.Dispatch("Access.Application") appl = win32com.client.Dispatch("Access.Application")
appl.visible = 0 appl.visible = 0
appl.OpenCurrentDatabase(r'C:\Users\Lorenz\Desktop\wgmaster2010.accdb', True, True) appl.OpenCurrentDatabase(r'C:\Users\Lorenz\Desktop\wgmaster2010.accdb', True, True)