Skip to content

Instantly share code, notes, and snippets.

@cocoy
Created April 20, 2012 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocoy/2425477 to your computer and use it in GitHub Desktop.
Save cocoy/2425477 to your computer and use it in GitHub Desktop.
slurp returns file not found.
diff --git a/library/slurp b/library/slurp
index 8b80e5d..64bf2be 100755
--- a/library/slurp
+++ b/library/slurp
@@ -42,7 +42,7 @@ params = {}
for x in items:
(k, v) = x.split("=")
params[k] = v
-source = params['src']
+source = os.path.expanduser(params['src'])
# ==========================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment