Clean up import code part

Fix reverse_geolocate module import loaders

Remove not used modules from main python script

Add the __pycache__ folder to ignore list
This commit is contained in:
2023-05-05 14:21:55 +09:00
parent ab997f2e22
commit d17b87c310
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.venv/
bin/utils/__pycache__/*

View File

@@ -14,7 +14,6 @@ MUST HAVE: Python XMP Toolkit (http://python-xmp-toolkit.readthedocs.io/)
"""
import configparser
import unicodedata
# import textwrap
import glob
import os
@@ -23,8 +22,7 @@ import re
import argparse
import sqlite3
from shutil import copyfile, get_terminal_size
from math import ceil, radians, sin, cos, atan2, sqrt
import requests
from math import ceil
# Note XMPFiles does not work with sidecar files, need to read via XMPMeta
from libxmp import XMPMeta, consts
# user modules below

View File

@@ -4,8 +4,8 @@ reverse geolacte functions
import requests
import re
from long_lat import long_lat_reg
from string_helpers import only_latin_chars
from utils.long_lat import long_lat_reg
from utils.string_helpers import only_latin_chars
def reverse_geolocate(longitude, latitude, map_type, args):
"""