2017-01-16 02:57:04 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2023-08-21 23:46:39 +02:00
|
|
|
# Copyright 2017-2023 Mike Fährmann
|
2017-01-16 02:57:04 +01:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2023-09-26 22:07:50 +02:00
|
|
|
if not __package__ and not hasattr(sys, "frozen"):
|
2017-01-16 02:57:04 +01:00
|
|
|
import os.path
|
2023-09-30 17:02:57 +02:00
|
|
|
path = os.path.realpath(os.path.abspath(__file__))
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
2017-01-16 02:57:04 +01:00
|
|
|
|
|
|
|
import gallery_dl
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2023-08-21 23:46:39 +02:00
|
|
|
raise SystemExit(gallery_dl.main())
|