summaryrefslogtreecommitdiff
path: root/net-im/toot/files/toot.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/toot/files/toot.in')
-rw-r--r--net-im/toot/files/toot.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/net-im/toot/files/toot.in b/net-im/toot/files/toot.in
new file mode 100644
index 000000000000..af8a6c3c302b
--- /dev/null
+++ b/net-im/toot/files/toot.in
@@ -0,0 +1,8 @@
+#!%%PYTHON_CMD%%
+# -*- coding: utf-8 -*-
+import re
+import sys
+from toot.cli import cli
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(cli())