Skip to content

Commit

Permalink
corrected some pathes
Browse files Browse the repository at this point in the history
  • Loading branch information
4tegs committed Dec 2, 2024
1 parent 9971f02 commit d4c7810
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions 00_make_all.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@echo off
@REM goto dealer
cls
rmdir /s /q ".\\POI_KML_OruxMaps"
rmdir /s /q ".\\POI_KML_OrganicMaps"
rmdir /s /q ".\\POI_GPX"
rmdir /s /q ".\\POI_GPI"
@REM -----------------------------------------------------------
@REM _ _ _
@REM | | ___ __| | __ _(_)_ __ __ _
Expand Down
21 changes: 17 additions & 4 deletions create_poi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@
import h_utils # type: ignore
except Exception as e:
print(f"Error importing utils: {e}")
# ----------------------------------------------------------------------------------
# I wasn't able to find the error in my compile, but as long as I don't add the same
# imports as in utils, the exe breaks with an import error.
# Duplicate imports from uitls.py:
# ----------------------------------------------------------------------------------
# from pathlib import Path
# import json
# import gpxpy
# import sys
# from tkinter import *
# from tkinter import ttk
# from ttkthemes import ThemedTk
# import xml.etree.ElementTree as ET

# ------------------------------------------------------------------------------------------
# _____ _ _ _ _ _ _
Expand Down Expand Up @@ -227,10 +240,10 @@ def main(args):
all_zip_files_gpx = ""
all_zip_files_gpi = ""
# Make a fresh workspace and delete all working directories used later
if os.path.exists(".\\POI_KML_OruxMaps") and os.path.isdir(".\\POI_KML_OruxMaps"): shutil.rmtree(".\\POI_KML_OruxMaps")
if os.path.exists(".\\POI_KML_OrganicMaps") and os.path.isdir(".\\POI_KML_OrganicMaps"): shutil.rmtree(".\\POI_KML_OrganicMaps")
if os.path.exists(".\\POI_GPX") and os.path.isdir(".\\POI_GPX"): shutil.rmtree(".\\POI_GPX")
if os.path.exists(".\\POI_GPI") and os.path.isdir(".\\POI_GPI"): shutil.rmtree(".\\POI_GPI")
# if os.path.exists(".\\POI_KML_OruxMaps") and os.path.isdir(".\\POI_KML_OruxMaps"): shutil.rmtree(".\\POI_KML_OruxMaps")
# if os.path.exists(".\\POI_KML_OrganicMaps") and os.path.isdir(".\\POI_KML_OrganicMaps"): shutil.rmtree(".\\POI_KML_OrganicMaps")
# if os.path.exists(".\\POI_GPX") and os.path.isdir(".\\POI_GPX"): shutil.rmtree(".\\POI_GPX")
# if os.path.exists(".\\POI_GPI") and os.path.isdir(".\\POI_GPI"): shutil.rmtree(".\\POI_GPI")

for items_in_scope in in_scope:
zip_kml_files = ""
Expand Down

0 comments on commit d4c7810

Please sign in to comment.