mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 10:12:06 -05:00
Add index.py
This commit is contained in:
parent
3df2c18f27
commit
ff003f571e
8
index.py
Normal file
8
index.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user