#!/usr/bin/env python
import sys
if sys.platform == 'win32':
    print('.\\Scripts\\')
else:
    print('./bin/')

@@ -26,52 +26,170 @@
 ort 
-sys%0Aif sys.platform == 'win32':%0A    print('.
+os%0Aimport sys%0A%0Asearch_dir = os.path.abspath(sys.argv%5B1%5D)%0Aif os.path.sep == '/':%0A    print(search_dir + %22/bin/%22)%0Aelif os.path.sep == '%5C%5C':%0A    print(search_dir + %22
 %5C%5CSc
@@ -195,17 +195,17 @@
 cripts%5C%5C
-'
+%22
 )%0Aelse:%0A
@@ -212,20 +212,50 @@
     
-print('./bin/'
+raise RuntimeError(%22Oh dear, funny path sep%22
 )%0A

Refactor virtualenv script finding