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

Newbie question #979

Closed
vanilla38 opened this issue Jul 2, 2013 · 2 comments
Closed

Newbie question #979

vanilla38 opened this issue Jul 2, 2013 · 2 comments

Comments

@vanilla38
Copy link

@vanilla38 vanilla38 commented Jul 2, 2013

Hello, i declared a variable named test in parseOpts(overrideArguments=None): function in init.py

I need to get this variable in Filedownloader.py, any idea on how to pass this variable to filedownlader ?

Thanks.

@phihag
Copy link
Contributor

@phihag phihag commented Jul 2, 2013

Instead of declaring a variable, you should add an option, and pass that on, around line 580. In FileDownloader, you can then user self.params['name_of_your_option'] to access the option.

If you want feedback while developing, feel free to submit a partial pull request.

@phihag phihag closed this Jul 2, 2013
@vanilla38
Copy link
Author

@vanilla38 vanilla38 commented Jul 2, 2013

thanks, yea I'm working on a new option (--bind-address) but it needs some improvements, when it'll be done I'll pull it.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.