Sign in
gem5
/
public
/
gem5
/
7bd668217b7319613276f66e8d58fb60afd25b5f
/
.
/
ext
/
pybind11
/
tests
/
test_embed
/
test_interpreter.py
blob: 5ab55a4b37137effa008016bb152c7ad4d957c47 [
file
] [
log
] [
blame
]
# -*- coding: utf-8 -*-
import
sys
from
widget_module
import
Widget
class
DerivedWidget
(
Widget
):
def
__init__
(
self
,
message
):
super
(
DerivedWidget
,
self
).
__init__
(
message
)
def
the_answer
(
self
):
return
42
def
argv0
(
self
):
return
sys
.
argv
[
0
]