coolbho3k / manuf

Parser library for Wireshark's OUI database.
Other
120 stars 36 forks source link

run library module as a script #9

Closed thejuan closed 4 years ago

thejuan commented 6 years ago

It would be nice if you could run an update like so

python -m manuf --update

Instead of having to find the path to the python script Adding a __main__.py allows this


from manuf import main

if __name__ == "__main__":
    main()