Commits

Gregory Petukhov committed 39eab22

Push current directory into sys.path when `grab` utility starts working

Comments (0)

Files changed (1)

 #!/usr/bin/env python
+import os
+import sys
+
+cur_dir = os.path.realpath(os.getcwd())
+if not cur_dir in sys.path:
+    sys.path.insert(0, cur_dir)
+
 from grab import cli
 
 if __name__ == '__main__':