Skip to content

Commit b71b2c3

Browse files
author
ybenel
committed
Adding Setup
Moving PrNdOwN As Package To Build And Install on the system
1 parent 79f68a2 commit b71b2c3

File tree

18 files changed

+320
-22
lines changed

18 files changed

+320
-22
lines changed

PrNdOwN/__init__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/python
2+
# Updated In 00/04/2020
3+
# Created By ybenel
4+
from __future__ import unicode_literals
5+
import sys
6+
import gettext
7+
import os.path
8+
from .downloader import download
9+
from .colors import get_colors
10+
from .version import __version__
11+
from .info import (
12+
__author__,
13+
__appname__,
14+
__contact__,
15+
__license__,
16+
__projecturl__,
17+
__licensefull__,
18+
__description__,
19+
__descriptionfull__,
20+
)
21+
__packagename__ = "PrNdOwN"
22+
23+
gettext.install(__packagename__)
24+
def main():
25+
try:
26+
download.runner()
27+
except KeyboardInterrupt as ky:
28+
print(get_colors.yellow()+get_colors.red() + "\n[!] CTRL+C Detected \n"+get_colors.cyan()+"Thanks For Usage :)"+get_colors.white())
29+
if __name__ == "__main__":
30+
main()

PrNdOwN/__main__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python
2+
# Date 31/08/2021
3+
# Author ybenel
4+
from __future__ import unicode_literals
5+
6+
import sys
7+
8+
if __package__ is None and not hasattr(sys, "frozen"):
9+
# direct call of __main__.py
10+
import os.path
11+
PATH = os.path.realpath(os.path.abspath(__file__))
12+
sys.path.append(os.path.dirname(os.path.dirname(PATH)))
13+
14+
import PrNdOwN
15+
16+
17+
if __name__ == '__main__':
18+
PrNdOwN.main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/banner.py renamed to PrNdOwN/banner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python3
22
# Created By ybenel
33
# Updated In 09/04/2020
4-
from colors import get_colors
4+
from .colors import get_colors
55
from random import shuffle
66
import threading
77
import os,sys

0 commit comments

Comments
 (0)