Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/gallery_dl/__main__.py
5457 views
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
# Copyright 2017-2023 Mike Fährmann
5
#
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License version 2 as
8
# published by the Free Software Foundation.
9
10
import sys
11
12
if not __package__ and not hasattr(sys, "frozen"):
13
import os.path
14
path = os.path.realpath(os.path.abspath(__file__))
15
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
16
17
import gallery_dl
18
19
if __name__ == "__main__":
20
raise SystemExit(gallery_dl.main())
21
22