planformcreator2 4.3.0__tar.gz → 4.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/PKG-INFO +1 -1
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/README.md +1 -1
- planformcreator2-4.3.1/icons/AE.ico +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/app.py +1 -1
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_panels.py +15 -1
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/.gitignore +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/LICENSE +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/doc/README_PyPi.md +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/icons/PC2.ico +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/icons/PC2_ico.pdn +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/__init__.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/__main__.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/app_model.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/app_modes.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/VLM.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/VLM_wing.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/__init__.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/wing.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/wing_exports.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/resources.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/__init__.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_artists.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_diagrams.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_dialogs.py +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/pyproject.toml +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/ASW_17.png +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Amokka.pc2 +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Bow.pc2 +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Elliptical.pc2 +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/F3B_F3F.pc2 +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Scale_Glider.pc2 +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Spitfire.png +0 -0
- {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Trapezoid.pc2 +0 -0
|
Binary file
|
|
@@ -66,7 +66,7 @@ logger = logging.getLogger(__name__)
|
|
|
66
66
|
#-------------------------------------------------------------------------------
|
|
67
67
|
|
|
68
68
|
APP_NAME = "PlanformCreator2"
|
|
69
|
-
__version__ = "4.3.
|
|
69
|
+
__version__ = "4.3.1" # hatch "version dynamic" reads this version for build
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
class Main (QMainWindow):
|
|
@@ -9,6 +9,7 @@ UI panels
|
|
|
9
9
|
|
|
10
10
|
import subprocess
|
|
11
11
|
import sys
|
|
12
|
+
import os
|
|
12
13
|
|
|
13
14
|
import logging
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ from airfoileditor.base.widgets import *
|
|
|
20
21
|
from airfoileditor.base.panels import Edit_Panel, MessageBox, Disabled_Overlay
|
|
21
22
|
from airfoileditor.model.airfoil import Airfoil, GEO_BASIC, Airfoil_Bezier, Airfoil_BSpline
|
|
22
23
|
|
|
24
|
+
from ..resources import _is_frozen
|
|
23
25
|
from ..model.wing import Wing, STRAK_AIRFOIL_NAME
|
|
24
26
|
from ..model.wing import (Planform, N_Distrib_Abstract, N_Chord_Reference, N_Reference_Line,
|
|
25
27
|
Flaps, WingSections, WingSection)
|
|
@@ -668,6 +670,18 @@ class Panel_WingSection (Panel_Planform_Abstract):
|
|
|
668
670
|
|
|
669
671
|
overlay = None
|
|
670
672
|
parent_window = self.window()
|
|
673
|
+
if _is_frozen():
|
|
674
|
+
candidate = os.path.join(os.path.dirname(sys.executable), 'AirfoilEditor.exe')
|
|
675
|
+
command = [candidate, airfoil.pathFileName_abs] if os.path.isfile(candidate) else None
|
|
676
|
+
if command is None:
|
|
677
|
+
text = (
|
|
678
|
+
f"Could not find AirfoilEditor.exe in {os.path.dirname(sys.executable)}.<br><br>"
|
|
679
|
+
"Reinstall the application<br>")
|
|
680
|
+
MessageBox.error(self, 'Edit Airfoil', text, min_height=110)
|
|
681
|
+
return
|
|
682
|
+
else:
|
|
683
|
+
command = [sys.executable, '-m', 'airfoileditor', airfoil.pathFileName_abs]
|
|
684
|
+
|
|
671
685
|
|
|
672
686
|
try:
|
|
673
687
|
overlay = Disabled_Overlay(parent_window)
|
|
@@ -675,7 +689,7 @@ class Panel_WingSection (Panel_Planform_Abstract):
|
|
|
675
689
|
QApplication.processEvents() # ensure overlay is shown
|
|
676
690
|
|
|
677
691
|
process = subprocess.run(
|
|
678
|
-
|
|
692
|
+
command,
|
|
679
693
|
capture_output=True,
|
|
680
694
|
text=True)
|
|
681
695
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|