Skip to content

Commit

Permalink
Fix package missing bug (#606)
Browse files Browse the repository at this point in the history
The Python script in the `experimental.jvm` package is not intended to
be invoked by the core OFG logic. Instead, it is meant to be executed by
the `run_e2e.sh` script located in the same directory. Therefore, if the
package name `experimental.jvm` needs to be changed as done in #604, the
`sys.path` must be set to the core OFG base path. This PR implements
that change.

---------

Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan authored Sep 13, 2024
1 parent 3fd1624 commit 0591d8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions experimental/jvm/generate_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# limitations under the License.
"""Manager for running auto-gen from scratch."""

import sys

sys.path.append('../../')

import argparse
import logging
import os
Expand Down
8 changes: 6 additions & 2 deletions experimental/jvm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@
###############################################################################
"""Provides a set of utils for oss-fuzz-gen on new Java projects integration"""

import sys

sys.path.append('../../')

import logging
import os
import subprocess
from typing import Optional

import constants
import oss_fuzz_templates
from urllib3.util import parse_url

from experimental.jvm import constants, oss_fuzz_templates

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit 0591d8e

Please sign in to comment.