Skip to content

Instantly share code, notes, and snippets.

@grncdr
grncdr / build_artifact.py
Created August 10, 2011 00:20
script to pack up a python project and all of it's dependencies in a tarfile using virtualenv
import subprocess
import shutil
import os
import sys
import tarfile
def get_version(project_root):
process = subprocess.Popen(
['git', 'describe'],
stdout=subprocess.PIPE,
#!/bin/sh
_command_prefix=${@:2}
echo '<openbox_pipe_menu>'
for i in `$1`; do
echo "<item label=\"$i\">"
echo '<action name="Execute">'
echo "<command>$_command_prefix $i</command>"
echo '</action>'
echo '</item>'