summaryrefslogtreecommitdiffstats
path: root/gallery_dl/__main__.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-07-02 04:33:45 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-07-02 04:33:45 -0400
commit195c45911e79c33cf0bb986721365fb06df5a153 (patch)
treeac0c9b6ef40bea7aa7ab0c5c3cb500eb510668fa /gallery_dl/__main__.py
Import Upstream version 1.8.7upstream/1.8.7
Diffstat (limited to 'gallery_dl/__main__.py')
-rw-r--r--gallery_dl/__main__.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/gallery_dl/__main__.py b/gallery_dl/__main__.py
new file mode 100644
index 0000000..04ea9fe
--- /dev/null
+++ b/gallery_dl/__main__.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+# Copyright 2017 Mike Fährmann
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+
+import sys
+
+if __package__ is None and not hasattr(sys, "frozen"):
+ import os.path
+ path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ sys.path.insert(0, os.path.realpath(path))
+
+import gallery_dl
+
+if __name__ == "__main__":
+ gallery_dl.main()