Commits

Jannis Leidel  committed 6a8a658

Added ability to exec the setuptools_hg module directly.

  • Participants
  • Parent commits ec3725f

Comments (0)

Files changed (1)

File setuptools_hg.py

     if hg is None:
         return find_files_with_cmd(dirname)
     return find_files_with_lib(dirname)
+
+
+if __name__ == "__main__":
+    from pprint import pprint
+
+    if len(sys.argv) != 2:
+        print("USAGE: %s DIRNAME" % sys.argv[0])
+        sys.exit(1)
+
+    pprint(hg_file_finder(sys.argv[1]))