Skip to content

Commit 8c8a04a

Browse files
committed
Fix for missing lookup table of wrf package
1 parent cadc2a7 commit 8c8a04a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

wrfplot.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,20 @@ except Exception as err:
4747
.find_spec("colormaps")
4848
.submodule_search_locations[0]
4949
)
50+
wrf_py_data_dir = os.path.join(
51+
importlib.machinery.PathFinder().find_spec("wrf").submodule_search_locations[0],
52+
"data",
53+
)
5054

5155
a = Analysis(
5256
["wrfplot/wrfplot.py"],
5357
pathex=[],
5458
binaries=[],
55-
datas=[("./wrfplot/data", "data"), (colormaps_module, "colormaps")]
59+
datas=[
60+
("./wrfplot/data", "data"),
61+
(colormaps_module, "colormaps"),
62+
(wrf_py_data_dir, "wrf/data"),
63+
]
5664
+ libos_files
5765
+ py_files
5866
+ mpl_toolkits_module,

0 commit comments

Comments
 (0)