changeset 4600:c61591186709

<fizzie> revert
author HackBot
date Sun, 20 Apr 2014 08:04:24 +0000
parents f3f75edfba05
children 30c35498e6b8
files bin/url
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bin/url	Sun Apr 20 08:04:08 2014 +0000
+++ b/bin/url	Sun Apr 20 08:04:24 2014 +0000
@@ -1,10 +1,9 @@
 #!/usr/bin/env python
-import sys, os.path, re, urllib
+import sys, re, urllib
 if len(sys.argv) <= 1:
     print "http://codu.org/projects/hackbot/fshg/"
 else:
-    f = os.path.abspath(f)
-    f = re.sub(r"^/+hackenv/", "", f)
+    f = re.sub(r"^/+hackenv/", "", sys.argv[1])
     if f.startswith("/"):
         sys.exit("File is outside hg repository.")
     else: