ocarina/libsaria/plugin.py

13 lines
260 B
Python

# Bryan Schumaker (8/15/2010)
path = None
def install(filepath):
global path
if path == None:
from libsaria import path
split = filepath.rsplit(path.sep, 1)
file = split[len(split)-1]
dest = path.join(path.plugin_dir(), file)
path.cp(filepath, dest)