Skip to content

Commit

Permalink
finding data files in libsumo package fix #9945
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 25, 2022
1 parent e3981f7 commit 9224636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/libsumo/__init__.py
Expand Up @@ -16,6 +16,8 @@
# @date 2018-06-05

import os
if "SUMO_HOME" not in os.environ and os.path.exists(os.path.join(os.path.dirname(__file__), "data")):
os.environ["SUMO_HOME"] = os.path.abspath(os.path.dirname(__file__))
if hasattr(os, "add_dll_directory"):
# since Python 3.8 the DLL search path has to be set explicitly see https://bugs.python.org/issue43173
if "SUMO_HOME" in os.environ:
Expand Down

0 comments on commit 9224636

Please sign in to comment.