コード例 #1
0
ファイル: fs.py プロジェクト: BackupTheBerlios/vellum-svn
import sys, os

from twisted.python import util

from vellum.util.filesystem import Filesystem

# for py2exe, make sure __file__ is real
if not os.path.isfile(__file__):
    __file__ = sys.executable


fs = Filesystem(util.sibpath(sys.argv[0], ''))
fs.downloads = fs.new("downloads", mkdir=1)
fs.gladefile = fs("vellum.glade")
fs.background = fs("pixmaps", "slatebg.png")
fs.ini = fs("vellum.ini")
コード例 #2
0
ファイル: fs.py プロジェクト: BackupTheBerlios/vellum-svn
import sys, os

from twisted.python import util

from vellum.util.filesystem import Filesystem

# for py2exe, make sure __file__ is real
if not os.path.isfile(__file__):
    __file__ = sys.executable


fs = Filesystem(util.sibpath(sys.argv[0], ''))
fs.downloads = Filesystem(fs("downloads"), mkdir=1)
fs.gladefile = fs("vellum.glade")
print fs.gladefile
コード例 #3
0
ファイル: fs.py プロジェクト: BackupTheBerlios/vellum-svn
import sys, os

from twisted.python import util

from vellum.util.filesystem import Filesystem

# for py2exe, make sure __file__ is real
if not os.path.isfile(__file__):
    __file__ = sys.executable

fs = Filesystem(util.sibpath(sys.argv[0], ''))
fs.downloads = Filesystem(fs("downloads"), mkdir=1)
fs.gladefile = fs("vellum.glade")
print fs.gladefile