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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
.venv/
|
||||
bin/utils/__pycache__/*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user