Skip to content

Commit

Permalink
python: get_inet_relative_path(): using INET_ROOT env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoltanBojthe committed Jul 28, 2023
1 parent 46c4037 commit b02f7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/inet/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_omnetpp_relative_path(path):
return os.path.abspath(os.path.join(os.environ["__omnetpp_root_dir"], path)) if "__omnetpp_root_dir" in os.environ else None

def get_inet_relative_path(path):
return os.path.join(get_workspace_path("inet"), path)
return os.path.join(os.environ["INET_ROOT"], path)

def get_workspace_path(path):
return os.path.join(os.path.realpath(get_omnetpp_relative_path("..")), path)
Expand Down

0 comments on commit b02f7be

Please sign in to comment.