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.
Files changed (33) hide show
  1. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/PKG-INFO +1 -1
  2. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/README.md +1 -1
  3. planformcreator2-4.3.1/icons/AE.ico +0 -0
  4. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/app.py +1 -1
  5. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_panels.py +15 -1
  6. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/.gitignore +0 -0
  7. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/LICENSE +0 -0
  8. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/doc/README_PyPi.md +0 -0
  9. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/icons/PC2.ico +0 -0
  10. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/icons/PC2_ico.pdn +0 -0
  11. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/__init__.py +0 -0
  12. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/__main__.py +0 -0
  13. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/app_model.py +0 -0
  14. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/app_modes.py +0 -0
  15. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/VLM.py +0 -0
  16. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/VLM_wing.py +0 -0
  17. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/__init__.py +0 -0
  18. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/wing.py +0 -0
  19. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/model/wing_exports.py +0 -0
  20. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/resources.py +0 -0
  21. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/__init__.py +0 -0
  22. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_artists.py +0 -0
  23. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_diagrams.py +0 -0
  24. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/planformcreator2/ui/pc2_dialogs.py +0 -0
  25. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/pyproject.toml +0 -0
  26. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/ASW_17.png +0 -0
  27. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Amokka.pc2 +0 -0
  28. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Bow.pc2 +0 -0
  29. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Elliptical.pc2 +0 -0
  30. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/F3B_F3F.pc2 +0 -0
  31. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Scale_Glider.pc2 +0 -0
  32. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Spitfire.png +0 -0
  33. {planformcreator2-4.3.0 → planformcreator2-4.3.1}/templates/Trapezoid.pc2 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: planformcreator2
3
- Version: 4.3.0
3
+ Version: 4.3.1
4
4
  Summary: Design a wing planform
5
5
  Project-URL: Homepage, https://github.com/jxjo/PlanformCreator2
6
6
  Project-URL: Issues, https://github.com/jxjo/PlanformCreator2/issues
@@ -2,7 +2,7 @@
2
2
  ![PC2](images/PC2_logo.png "Logo")
3
3
 
4
4
 
5
- # v4.3.0
5
+ # v4.3.1
6
6
 
7
7
  **PlanformCreator2** (PC2) is an app for designing wing planforms, with a focus on model planes.
8
8
 
Binary file
@@ -66,7 +66,7 @@ logger = logging.getLogger(__name__)
66
66
  #-------------------------------------------------------------------------------
67
67
 
68
68
  APP_NAME = "PlanformCreator2"
69
- __version__ = "4.3.0" # hatch "version dynamic" reads this version for build
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
- [sys.executable, '-m', 'airfoileditor', airfoil.pathFileName_abs],
692
+ command,
679
693
  capture_output=True,
680
694
  text=True)
681
695