pocketpy/tests/dylib/main.py
blueloveTH b282630b02 ...
2023-07-15 15:21:38 +08:00

12 lines
214 B
Python

import os
import sys
print('platform:', sys.platform)
print(os.getcwd())
if sys.platform == 'linux':
test = __import__('build/linux/libtest.so')
else:
raise Exception('Unsupported platform')
test.hello()