nmaier / mintrayr

Mozilla extension: Minimize windows into the system tray (Firefox, Thunderbird, Seamonkey, Instantbird)
https://tn123.org/mintrayr/
Mozilla Public License 2.0
84 stars 37 forks source link

build/build.py -- path.py not properly imported (path is not the same as Path) #186

Open neoh4x0r opened 6 years ago

neoh4x0r commented 6 years ago

Using: path.py (10.5) on Debian 9 (stretch) The error message is: Install path.py (via pip)

After installing path.py

build/build.py", line 60, in build
    basedir = path(basedir)
NameError: global name 'path' is not defined

The problem is that path should be Path

from path import Path
basedir = Path(basedir)
oe = Path(fe.replace("\\", "/"))[len(basedir):]
jar_files = (Path(__file__).dirname() / "jar.files").lines(retain=False)
xpi_files = (Path(__file__).dirname() / "xpi.files").lines(retain=False)

After changing references from path to Path -- the xpi was built.