Add index.py

This commit is contained in:
LEGALISE_PIRACY 2024-01-24 00:20:32 +00:00
parent 3df2c18f27
commit ff003f571e

8
index.py Normal file
View File

@ -0,0 +1,8 @@
try:
from http.server import SimpleHTTPRequestHandler, test as test_orig
except ImportError:
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import test as test_orig
def test(*a): test_orig(*a, port=int(a[0]) if a else 8000)
if __name__ == '__main__': test()