本文整理汇总了Python中Tools.Tools.getAbsPath方法的典型用法代码示例。如果您正苦于以下问题:Python Tools.getAbsPath方法的具体用法?Python Tools.getAbsPath怎么用?Python Tools.getAbsPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tools.Tools
的用法示例。
在下文中一共展示了Tools.getAbsPath方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from Tools import Tools [as 别名]
# 或者: from Tools.Tools import getAbsPath [as 别名]
# bplate
""" This module facilitates art """
import wx
import os
import sys
from Tools import Tools
abspath = Tools.getAbsPath()
artpath = abspath + '/graphics/'
print artpath
app = wx.PySimpleApp()
DEFAULTPIC = "greensphere"
# a path and mask color key tuple is associated with each
# artname, if a mask color key is set, apply it
artDict = {
"question":("question.png", "w"),
"underconstruction":("underconstruction.png","" ,),
"roadwarning":("roadwarning.png","" ,),
"yellowsphere":("yellowsphere.png", "w",),
"brownsphere":("brownsphere.png", "w",),
"logbrownsphere":("brownsphere.png", "w",),
"redsphere":("redsphere.png", "w",),
"greensphere":("greensphere.png", "w",),
"32x32editor":("32x32editor.png","" ,),
"32x32error":("32x32error.png","" ,),
"32x32warning":("32x32warning.png","" ,),