Skip to content

Commit

Permalink
[FIX] Prevent initialisation of the graphical GUI on WSL (#72)
Browse files Browse the repository at this point in the history
- Prevents the initialisation of the graphical GUI on WSL.

* Introduce Pull Request Template

* [FEATURE] Add check for required input parameter for CLI and GUI (#41)

- now not only for GUI but also for CLI the country argument is checked
- added a check at the start to see if a country is to process is specified. Otherwise closing the GUI without selecting anything resulted in a runtime error.

* [FEATURE] Enhance check for existing (already downloaded) polygons and .osm.pbf files (#43)

- use the files modification date, not the creation time. On windows this seemed to occasionally see newly downloaded files as the ones they replaced.
- check for a full match instead of doing a wildcard match while checking for existing maps. This prevents matching to multiple maps like australia and australia-oceania.

* Delete PULL_REQUEST_TEMPLATE.md

* Delete wahoo_map_creator.py

* Check if we are running in WSl. If so prevent starting the Gui

Co-authored-by: Benjamin <benni.kreuscher@gmail.com>
Co-authored-by: Benjamin K <53038537+treee111@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 14, 2021
1 parent e0773c5 commit 2a64a17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common_python/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# import official python packages
import argparse
import sys
from platform import uname

# for gui
import tkinter as tk
Expand Down Expand Up @@ -56,6 +57,10 @@ def __init__(self, *args, **kwargs):

self.o_input_data = InputData()

if 'microsoft' in uname().release:
self.gui_mode = False
return

tk.Tk.__init__(self, *args, **kwargs)

# self.geometry("420x360")
Expand Down

0 comments on commit 2a64a17

Please sign in to comment.