From 28ce38779cb99a4b849cb783a3b887caaeecbb5b Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 13 Apr 2023 15:55:49 +0200 Subject: [PATCH] Python interpreter/encoding fix --- gradation.py | 3 ++- wgmaster/csv.py | 2 +- wgmaster/export.py | 2 +- wgmaster/import.py | 2 +- wgmaster/migrate.py | 2 +- wgmaster/wg.py | 4 ++++ wgmaster/wg2.py | 3 +++ 7 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gradation.py b/gradation.py index b2fc6a2..4ce9536 100755 --- a/gradation.py +++ b/gradation.py @@ -1,4 +1,5 @@ -#!/bin/env python3 +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- from __future__ import annotations from typing import Union diff --git a/wgmaster/csv.py b/wgmaster/csv.py index ba2307a..aeb795f 100644 --- a/wgmaster/csv.py +++ b/wgmaster/csv.py @@ -1,4 +1,4 @@ -#!/bin/env python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import Iterator, Dict, Any, Tuple diff --git a/wgmaster/export.py b/wgmaster/export.py index 1129114..ada4475 100644 --- a/wgmaster/export.py +++ b/wgmaster/export.py @@ -1,4 +1,4 @@ -#!/bin/env python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse diff --git a/wgmaster/import.py b/wgmaster/import.py index 8431a19..e40ac98 100755 --- a/wgmaster/import.py +++ b/wgmaster/import.py @@ -1,4 +1,4 @@ -#!/bin/env python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import List, Optional diff --git a/wgmaster/migrate.py b/wgmaster/migrate.py index 6692c63..1091c27 100755 --- a/wgmaster/migrate.py +++ b/wgmaster/migrate.py @@ -1,4 +1,4 @@ -#!/bin/env python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import Dict, Any, Tuple, Optional, List, Iterable diff --git a/wgmaster/wg.py b/wgmaster/wg.py index d71c878..8759560 100644 --- a/wgmaster/wg.py +++ b/wgmaster/wg.py @@ -1,5 +1,9 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- + import pypyodbc + + pypyodbc.lowercase = False conn = pypyodbc.connect( r"Driver={Microsoft Access Driver (*.mdb, *.accdb)};" + diff --git a/wgmaster/wg2.py b/wgmaster/wg2.py index 9799a79..5b1cc3c 100644 --- a/wgmaster/wg2.py +++ b/wgmaster/wg2.py @@ -1,6 +1,9 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- import win32com.client + appl = win32com.client.Dispatch("Access.Application") appl.visible = 0 appl.OpenCurrentDatabase(r'C:\Users\Lorenz\Desktop\wgmaster2010.accdb', True, True)