Skip to content

Commit

Permalink
wip: idk: patching inet-4.5 to make the repl work
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgeorge309 committed May 14, 2024
1 parent efc3bff commit 0fecce3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opp_env/database/inet.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def make_inet_project_description(inet_version, omnetpp_versions):
"sed -i.bak 's|precompiled.h|precompiled_$(MODE).h|' src/makefrag" if inet_version.startswith("3.5") else None,
"""echo '#include "precompiled.h"' > src/inet/common/precompiled_debug.h""" if inet_version.startswith("3.5") else None,
"""echo '#include "precompiled.h"' > src/inet/common/precompiled_release.h""" if inet_version.startswith("3.5") else None,

"""sed -i.bak 's|import optimparallel|import importlib.util\\nif importlib.util.find_spec("optimparallel"):\\n import optimparallel|' python/inet/simulation/optimize.py""" if inet_version.startswith("4.5") else None,
],
"setenv_commands": [
'export OMNETPP_IMAGE_PATH="$OMNETPP_IMAGE_PATH:$INET_ROOT/images"',
Expand Down

0 comments on commit 0fecce3

Please sign in to comment.