本文整理汇总了Python中com.aurellem.gb.Gb.loadVBA方法的典型用法代码示例。如果您正苦于以下问题:Python Gb.loadVBA方法的具体用法?Python Gb.loadVBA怎么用?Python Gb.loadVBA使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.aurellem.gb.Gb
的用法示例。
在下文中一共展示了Gb.loadVBA方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Exception
# 需要导入模块: from com.aurellem.gb import Gb [as 别名]
# 或者: from com.aurellem.gb.Gb import loadVBA [as 别名]
# for _check_java_library_path
from java.lang import System
# for passing states to the emulator
from java.nio import ByteBuffer
# For getRegisters and other times we have to pass a java int array to a
# function.
import jarray
# load in the vba-clojure bindings
import com.aurellem.gb.Gb as Gb
# load the vba-clojure library
Gb.loadVBA()
from vba_config import *
try:
import vba_keyboard as keyboard
except ImportError:
print "Not loading the keyboard module (which uses networkx)."
if not os.path.exists(rom_path):
raise Exception("rom_path is not configured properly; edit vba_config.py?")
def _check_java_library_path():
"""
Returns the value of java.library.path. The vba-clojure library must be
compiled and linked from this location.