jafeha / parabird

Simple script written in python to build an os independent truecrypt encrypted usb-stick containing a portable thunderbird, enigmail, torbirdy and vidalia.
GNU General Public License v3.0
11 stars 7 forks source link

move functions to utils.py #17

Closed jafeha closed 11 years ago

jafeha commented 11 years ago

it's getting a bit messy. we're now having a couple of functions: download_check(), update_config(), download_application(), extract_files() and of course the mainLogger(). i'd prefer to move all of them to utils.py to be able to use some functions within others. e.g. the logger function is needed in almost all other functions. crossimporting seems to be a bit uncool isn't it?

i might need some help my @jojoo- to do this.

jojoo- commented 11 years ago

you could just put all that stuff (meaning also the declaration of the parser and the logger) in the utils.py and just say

from utils import *

that will import everything in the namespace of the main script and thus should work

jafeha commented 11 years ago

seems to work. thanks.