mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
14 lines
290 B
Python
14 lines
290 B
Python
import os
|
|
import sys
|
|
|
|
print('platform:', sys.platform)
|
|
print(os.getcwd())
|
|
|
|
if sys.platform == 'linux':
|
|
test = __import__('build/linux/libtest.so')
|
|
elif sys.platform == 'win32':
|
|
test = __import__('build/win32/test.dll')
|
|
else:
|
|
raise Exception('Unsupported platform')
|
|
|
|
test.hello() |