Skip to content

Commit

Permalink
found the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
David Culbreth committed Jun 20, 2023
1 parent a76313c commit d888893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# This puts priority on loading virtualenv library in the pack's action. This is necessary
# for the situation that both st2 and pack require to load same name libraries with different
# version. Without this statement, action may call library method with unexpected dependencies.
sys.path.insert(0, sysconfig.get_path('platlib'))
sys.path.insert(0, sysconfig.get_path("platlib"))

import sys
import argparse
Expand Down
6 changes: 4 additions & 2 deletions st2common/st2common/util/sandboxing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@
import fnmatch
import os
import sys
from sysconfig import get_path
from sysconfig import get_path

from oslo_config import cfg

from st2common.constants.action import LIBS_DIR as ACTION_LIBS_DIR
from st2common.constants.pack import SYSTEM_PACK_NAMES
from st2common.content.utils import get_pack_base_path


def get_python_lib():
"""Replacement for distutil.sysconfig.get_python_lib, returns a string with the python platform lib path (to site-packages)"""
return get_path('platlib')
return get_path("platlib")


__all__ = [
"get_sandbox_python_binary_path",
Expand Down

0 comments on commit d888893

Please sign in to comment.