"""Helpers for writing rules that depends on //py/g1/third-party/capnp."""

__all__ = [
    'make_global_options',
]


def make_global_options(ps):
    return [
        'compile_schemas',
        *('--import-path=%s/codex' % path for path in ps['//bases:roots']),
    ]

"""Helpers for writing rules that depends on //py/g1/third-party/capnp."""

__all__ = [
    'make_global_options',
]


def make_global_options(ps):
    return [
        'compile_schemas',
        '--import-path=%s' %
        ':'.join(str(path / 'codex') for path in ps['//bases:roots']),
    ]

Fix joining of capnp import paths
Fix joining of capnp import paths

  """Helpers for writing rules that depends on //py/g1/third-party/capnp."""
  
  __all__ = [
      'make_global_options',
  ]
  
  
  def make_global_options(ps):
      return [
          'compile_schemas',
-         *('--import-path=%s/codex' % path for path in ps['//bases:roots']),
+         '--import-path=%s' %
+         ':'.join(str(path / 'codex') for path in ps['//bases:roots']),
      ]
  
Fix joining of capnp import paths
## Code Before:
"""Helpers for writing rules that depends on //py/g1/third-party/capnp."""

__all__ = [
    'make_global_options',
]


def make_global_options(ps):
    return [
        'compile_schemas',
        *('--import-path=%s/codex' % path for path in ps['//bases:roots']),
    ]

## Instruction:
Fix joining of capnp import paths
## Code After:
"""Helpers for writing rules that depends on //py/g1/third-party/capnp."""

__all__ = [
    'make_global_options',
]


def make_global_options(ps):
    return [
        'compile_schemas',
        '--import-path=%s' %
        ':'.join(str(path / 'codex') for path in ps['//bases:roots']),
    ]
