is "common" module in Standard Library?

20,773

I would suggest you check for a common.py file and add it to your PYTHONPATH.

if you are using some sort of unix/bsd you could try to do a "locate common.py" and check if it has a Struct somewhere.

Hope this helps

Share:
20,773
Admin
Author by

Admin

Updated on July 02, 2020

Comments

  • Admin
    Admin almost 4 years

    I got this script for my program. The program uses python for scripting. Anyway, the script has this line

    from common import Struct
    

    Is this part of Python's standard library? because my python seems to be missing it. Maybe it is deprecated? The script didn't include anything else but that one python file, so i guessed it's not a module made by the script creator.

  • Patrick Mevzek
    Patrick Mevzek almost 5 years
    But multiple problems: 1) locate may not exist on the platform used or the underlying DB not being up to date (hence false positives/negatives), and 2) a Python common module may not necessarily be defined by a file common.py, you could as well have common/__init__py, common/a.py, common/b.py, etc. so a search on common.py would yield nothing but be a false negative.