Added support for Windows

This commit is contained in:
Jan Rude
2014-08-24 13:23:20 +02:00
parent b62e6d3e9a
commit e191d230d5

View File

@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############ Version information ############## ############ Version information ##############
__version__ = "0.3.1" __version__ = "0.3.2"
__program__ = "Typo-Enumerator v" + __version__ __program__ = "Typo-Enumerator v" + __version__
__description__ = 'Automatic Typo3 and Typo3 extensions enumeration tool' __description__ = 'Automatic Typo3 and Typo3 extensions enumeration tool'
__author__ = "Jan Rude" __author__ = "Jan Rude"
@@ -14,12 +14,14 @@ import os
import datetime import datetime
import argparse import argparse
import warnings import warnings
from colorama import Fore, Style from colorama import init, Fore, Style
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning) warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
warnings.filterwarnings(action="ignore", category=DeprecationWarning) warnings.filterwarnings(action="ignore", category=DeprecationWarning)
from lib import settings from lib import settings
from lib import update from lib import update
from lib import start from lib import start
init()
# Main # Main
def main(argv): def main(argv):
@@ -135,5 +137,5 @@ if __name__ == "__main__":
print('\t' + '(c)2014 by ' + __author__) print('\t' + '(c)2014 by ' + __author__)
print('\t' + 'Status:\t' + __status__) print('\t' + 'Status:\t' + __status__)
print('\t' + 'For legal purposes only!') print('\t' + 'For legal purposes only!')
print(70*'*') print(70*'*' + '\n')
sys.exit( not main( sys.argv ) ) sys.exit( not main( sys.argv ) )