Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neoh4x0r opened this issue Dec 27, 2017 · 0 comments

Comments

@neoh4x0r
Copy link

neoh4x0r commented Dec 27, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant