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/
|
.venv/
|
||||||
|
bin/utils/__pycache__/*
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ MUST HAVE: Python XMP Toolkit (http://python-xmp-toolkit.readthedocs.io/)
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
import unicodedata
|
|
||||||
# import textwrap
|
# import textwrap
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
@@ -23,8 +22,7 @@ import re
|
|||||||
import argparse
|
import argparse
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from shutil import copyfile, get_terminal_size
|
from shutil import copyfile, get_terminal_size
|
||||||
from math import ceil, radians, sin, cos, atan2, sqrt
|
from math import ceil
|
||||||
import requests
|
|
||||||
# Note XMPFiles does not work with sidecar files, need to read via XMPMeta
|
# Note XMPFiles does not work with sidecar files, need to read via XMPMeta
|
||||||
from libxmp import XMPMeta, consts
|
from libxmp import XMPMeta, consts
|
||||||
# user modules below
|
# user modules below
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ reverse geolacte functions
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
import re
|
import re
|
||||||
from long_lat import long_lat_reg
|
from utils.long_lat import long_lat_reg
|
||||||
from string_helpers import only_latin_chars
|
from utils.string_helpers import only_latin_chars
|
||||||
|
|
||||||
def reverse_geolocate(longitude, latitude, map_type, args):
|
def reverse_geolocate(longitude, latitude, map_type, args):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user