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
Author by
Admin
Updated on July 02, 2020Comments
-
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 almost 5 yearsBut 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 filecommon.py
, you could as well havecommon/__init__py
,common/a.py
,common/b.py
, etc. so a search oncommon.py
would yield nothing but be a false negative.