[PD-cvs] abstractions/pixelTANGO/scripts pt.py,NONE,1.1
B. Bogart
bbogart at users.sourceforge.net
Sat Nov 26 23:21:09 CET 2005
- Previous message: [PD-cvs] abstractions/pixelTANGO/help pixelTANGO-help.pd, NONE, 1.1 pt.animate-help.pd, NONE, 1.1 pt.entry-help.pd, NONE, 1.1 pt.fader-help.pd, NONE, 1.1 pt.feedback-help.pd, NONE, 1.1 pt.file-help.pd, NONE, 1.1 pt.filelist-help.pd, NONE, 1.1 pt.interp-help.pd, NONE, 1.1 pt.layer-help.pd, NONE, 1.1 pt.layerfx-help.pd, NONE, 1.1 pt.light-help.pd, NONE, 1.1 pt.live-help.pd, NONE, 1.1 pt.loop-help.pd, NONE, 1.1 pt.model-help.pd, NONE, 1.1 pt.presets-help.pd, NONE, 1.1 pt.rotate-help.pd, NONE, 1.1 pt.scale-help.pd, NONE, 1.1 pt.source-help.pd, NONE, 1.1 pt.squeeze-help.pd, NONE, 1.1 pt.text-help.pd, NONE, 1.1 pt.translate-help.pd, NONE, 1.1 pt.video-help.pd, NONE, 1.1 pt.whatcolour-help.pd, NONE, 1.1 pt.window-help.pd, NONE, 1.1
- Next message: [PD-cvs] abstractions Makefile,1.14,1.15 TODO,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/abstractions/pixelTANGO/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4841/scripts
Added Files:
pt.py
Log Message:
Initial Commit of pixelTANGO 0.3.4
--- NEW FILE: pt.py ---
# PixelTANGO Python code for dirlist and stripExtension
# Copyright Ben Bogart, Franz Hildgen,
# The Societe des arts technologiques and
# The Interaccess Electronic Media Arts Centre
import os
import os.path
import glob
print "pt: py scripts init"
# Removes extension
def stripExtension(arg):
return os.path.splitext(str(arg))[0]
# Lists files matching pattern in path.
def dirlist(*args):
if len(args) == 2:
pattern=str(args[0])
path=str(args[1])
files=list('') # Seems like a bad way to create a list var
test=os.path.join(path,pattern)
entries=glob.glob(test)
for entry in entries:
if os.path.isfile(entry):
files.append(entry)
return files
else:
print "pt: dirlist only accepts two arguments: [pattern] [path]"
print "args: ",args
# Removed path component to leave only the filename.
def stripPath(arg):
return os.path.basename(str(arg))
- Previous message: [PD-cvs] abstractions/pixelTANGO/help pixelTANGO-help.pd, NONE, 1.1 pt.animate-help.pd, NONE, 1.1 pt.entry-help.pd, NONE, 1.1 pt.fader-help.pd, NONE, 1.1 pt.feedback-help.pd, NONE, 1.1 pt.file-help.pd, NONE, 1.1 pt.filelist-help.pd, NONE, 1.1 pt.interp-help.pd, NONE, 1.1 pt.layer-help.pd, NONE, 1.1 pt.layerfx-help.pd, NONE, 1.1 pt.light-help.pd, NONE, 1.1 pt.live-help.pd, NONE, 1.1 pt.loop-help.pd, NONE, 1.1 pt.model-help.pd, NONE, 1.1 pt.presets-help.pd, NONE, 1.1 pt.rotate-help.pd, NONE, 1.1 pt.scale-help.pd, NONE, 1.1 pt.source-help.pd, NONE, 1.1 pt.squeeze-help.pd, NONE, 1.1 pt.text-help.pd, NONE, 1.1 pt.translate-help.pd, NONE, 1.1 pt.video-help.pd, NONE, 1.1 pt.whatcolour-help.pd, NONE, 1.1 pt.window-help.pd, NONE, 1.1
- Next message: [PD-cvs] abstractions Makefile,1.14,1.15 TODO,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list