File: hook-bumps.py

package info (click to toggle)
python-bumps 1.0.0b2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,144 kB
  • sloc: python: 23,941; xml: 493; ansic: 373; makefile: 209; sh: 91; javascript: 90
file content (9 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from bumps.gui.resources import resources as gui_resources

# The exported API names are not used within the bumps package, so they
# need to be listed explicitly.
hiddenimports = ["names"]

# Convert [(dir, [f1,f2, ...]), ...] returned by gui_resource.data_files()
# into [(f1, dir), (f2, dir), ...] expected for datas.
datas = [(fname, dirname) for dirname, filelist in gui_resources.data_files() for fname in filelist]