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

Make import Server in nut.py conditional #364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ii0606226
Copy link

Move import Server into if args.server: code block so it doesn't get imported when it's not used (i.e. on python nut.py --decompress <filename>) and doesn't throw an exception on pycurl-less systems (i.e. Windows as per requirements.txt, line 20).
Minimal testing done:
before change --decompress throws an exception;
after change --decompress works, -S throws an exception.

Move `import Server` into `if args.server:` code block so it doesn't get imported when it's not used (i.e. on `python nut.py --decompress <filename>`) and doesn't throw an exception on pycurl-less systems (i.e. Windows as per `requirements.txt`, line 20).
Minimal testing done:
before change `--decompress` throws an exception;
after change `--decompress` works, `-S` throws an exception.
@ghost
Copy link

ghost commented Oct 20, 2021

for pycurl on windows use the prebuilt wheel - https://github.com/blawar/nut/blob/master/tests/pycurl-7.43.0.5-cp39-cp39-win_amd64.whl

@introkun introkun requested a review from blawar March 26, 2024 21:58
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

Successfully merging this pull request may close these issues.

1 participant