mirror of https://gitlab.com/pamhyr/pamhyr2
Compare commits
3 Commits
a4423e45f8
...
a97717a624
| Author | SHA1 | Date |
|---|---|---|
|
|
a97717a624 | |
|
|
3f650de52f | |
|
|
1f4bda7976 |
|
|
@ -292,7 +292,7 @@ build-linux:
|
|||
- pip3 install -r ../requirements.txt
|
||||
- pip3 install -U -r ../requirements.txt
|
||||
# Run Pyinstaller
|
||||
- pyinstaller -y --paths linux-venv/lib/python3.8/site-packages ../src/pamhyr.py
|
||||
- pyinstaller -y --hiddenimport rasterio --paths linux-venv/lib/python3.8/site-packages ../src/pamhyr.py
|
||||
# Create directory
|
||||
- mkdir -p pamhyr
|
||||
- mkdir -p pamhyr/_internal
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ import logging
|
|||
try:
|
||||
import rasterio
|
||||
_rasterio_loaded = True
|
||||
except:
|
||||
except Exception as e:
|
||||
print("Module 'rasterio' is not available")
|
||||
_rasterio_loaded = False
|
||||
|
||||
from numpy import sqrt
|
||||
|
|
|
|||
|
|
@ -186,12 +186,13 @@ class PamhyrWindow(ASubMainWindow, ListedSubWindow, PamhyrWindowTools):
|
|||
def _set_title(self):
|
||||
title = self._title
|
||||
|
||||
if self._study.is_read_only():
|
||||
title = "⛔ " + title
|
||||
if self._study is not None:
|
||||
if self._study.is_read_only():
|
||||
title = "⛔ " + title
|
||||
|
||||
scenario = self._study.status.scenario
|
||||
if scenario is not None and scenario.name != "default":
|
||||
title += f" | {scenario.name}"
|
||||
scenario = self._study.status.scenario
|
||||
if scenario is not None and scenario.name != "default":
|
||||
title += f" | {scenario.name}"
|
||||
|
||||
self.ui.setWindowTitle(title)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue