From ac7cfb9b147fd0e90aa7ffeff81ef133f5d74399 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 1 Feb 2022 14:45:30 +0000 Subject: [PATCH] core plugins: Add big obvious comment about imports and windows installer --- plugins/coriolis.py | 22 ++++++++++++++++++++++ plugins/eddb.py | 22 ++++++++++++++++++++++ plugins/eddn.py | 22 ++++++++++++++++++++++ plugins/edsm.py | 22 ++++++++++++++++++++++ plugins/edsy.py | 22 ++++++++++++++++++++++ plugins/inara.py | 22 ++++++++++++++++++++++ 6 files changed, 132 insertions(+) diff --git a/plugins/coriolis.py b/plugins/coriolis.py index c05ba089..78ae1b41 100644 --- a/plugins/coriolis.py +++ b/plugins/coriolis.py @@ -1,5 +1,27 @@ """Coriolis ship export.""" +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# +# This is an EDMC 'core' plugin. +# +# All EDMC plugins are *dynamically* loaded at run-time. +# +# We build for Windows using `py2exe`. +# +# `py2exe` can't possibly know about anything in the dynamically loaded +# core plugins. +# +# Thus you **MUST** check if any imports you add in this file are only +# referenced in this file (or only in any other core plugin), and if so... +# +# YOU MUST ENSURE THAT PERTINENT ADJUSTMENTS ARE MADE IN `setup.py` +# SO AS TO ENSURE THE FILES ARE ACTUALLY PRESENT IN AN END-USER +# INSTALLATION ON WINDOWS. +# +# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# import base64 import gzip import io diff --git a/plugins/eddb.py b/plugins/eddb.py index 220046f0..111d768c 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -23,6 +23,28 @@ # +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# +# This is an EDMC 'core' plugin. +# +# All EDMC plugins are *dynamically* loaded at run-time. +# +# We build for Windows using `py2exe`. +# +# `py2exe` can't possibly know about anything in the dynamically loaded +# core plugins. +# +# Thus you **MUST** check if any imports you add in this file are only +# referenced in this file (or only in any other core plugin), and if so... +# +# YOU MUST ENSURE THAT PERTINENT ADJUSTMENTS ARE MADE IN `setup.py` +# SO AS TO ENSURE THE FILES ARE ACTUALLY PRESENT IN AN END-USER +# INSTALLATION ON WINDOWS. +# +# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# import sys from typing import TYPE_CHECKING, Any, Optional diff --git a/plugins/eddn.py b/plugins/eddn.py index e3e4e198..d58eac26 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -1,5 +1,27 @@ """Handle exporting data to EDDN.""" +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# +# This is an EDMC 'core' plugin. +# +# All EDMC plugins are *dynamically* loaded at run-time. +# +# We build for Windows using `py2exe`. +# +# `py2exe` can't possibly know about anything in the dynamically loaded +# core plugins. +# +# Thus you **MUST** check if any imports you add in this file are only +# referenced in this file (or only in any other core plugin), and if so... +# +# YOU MUST ENSURE THAT PERTINENT ADJUSTMENTS ARE MADE IN `setup.py` +# SO AS TO ENSURE THE FILES ARE ACTUALLY PRESENT IN AN END-USER +# INSTALLATION ON WINDOWS. +# +# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# import itertools import json import pathlib diff --git a/plugins/edsm.py b/plugins/edsm.py index 31f5a317..6bbf0223 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -9,6 +9,28 @@ # 4) Ensure the EDSM API call(back) for setting the image at end of system # text is always fired. i.e. CAPI cmdr_data() processing. +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# +# This is an EDMC 'core' plugin. +# +# All EDMC plugins are *dynamically* loaded at run-time. +# +# We build for Windows using `py2exe`. +# +# `py2exe` can't possibly know about anything in the dynamically loaded +# core plugins. +# +# Thus you **MUST** check if any imports you add in this file are only +# referenced in this file (or only in any other core plugin), and if so... +# +# YOU MUST ENSURE THAT PERTINENT ADJUSTMENTS ARE MADE IN `setup.py` +# SO AS TO ENSURE THE FILES ARE ACTUALLY PRESENT IN AN END-USER +# INSTALLATION ON WINDOWS. +# +# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# import json import threading import tkinter as tk diff --git a/plugins/edsy.py b/plugins/edsy.py index 7da92fa4..df61683e 100644 --- a/plugins/edsy.py +++ b/plugins/edsy.py @@ -1,5 +1,27 @@ # EDShipyard ship export +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# +# This is an EDMC 'core' plugin. +# +# All EDMC plugins are *dynamically* loaded at run-time. +# +# We build for Windows using `py2exe`. +# +# `py2exe` can't possibly know about anything in the dynamically loaded +# core plugins. +# +# Thus you **MUST** check if any imports you add in this file are only +# referenced in this file (or only in any other core plugin), and if so... +# +# YOU MUST ENSURE THAT PERTINENT ADJUSTMENTS ARE MADE IN `setup.py` +# SO AS TO ENSURE THE FILES ARE ACTUALLY PRESENT IN AN END-USER +# INSTALLATION ON WINDOWS. +# +# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# import base64 import gzip import json diff --git a/plugins/inara.py b/plugins/inara.py index 08b3b86d..2446693a 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -1,5 +1,27 @@ """Inara Sync.""" +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# +# This is an EDMC 'core' plugin. +# +# All EDMC plugins are *dynamically* loaded at run-time. +# +# We build for Windows using `py2exe`. +# +# `py2exe` can't possibly know about anything in the dynamically loaded +# core plugins. +# +# Thus you **MUST** check if any imports you add in this file are only +# referenced in this file (or only in any other core plugin), and if so... +# +# YOU MUST ENSURE THAT PERTINENT ADJUSTMENTS ARE MADE IN `setup.py` +# SO AS TO ENSURE THE FILES ARE ACTUALLY PRESENT IN AN END-USER +# INSTALLATION ON WINDOWS. +# +# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# +# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# ! $# import json import threading import time