summaryrefslogtreecommitdiffstats
path: root/bittorrent-tracker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bittorrent-tracker.py')
-rwxr-xr-xbittorrent-tracker.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/bittorrent-tracker.py b/bittorrent-tracker.py
new file mode 100755
index 0000000..52dace4
--- /dev/null
+++ b/bittorrent-tracker.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+
+# The contents of this file are subject to the BitTorrent Open Source License
+# Version 1.1 (the License). You may not copy or use this file, in either
+# source code or executable form, except in compliance with the License. You
+# may obtain a copy of the License at http://www.bittorrent.com/license/.
+#
+# Software distributed under the License is distributed on an AS IS basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+
+# Written by Bram Cohen
+
+if __name__ == '__main__':
+ from BitTorrent.platform import install_translation
+ install_translation()
+
+import os
+from sys import argv
+from BitTorrent.track import track
+
+if __name__ == '__main__':
+ track(argv[1:])