mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-21 04:46:45 -05:00
Merge pull request 'python' (#1) from selenite/pages:main into main
Reviewed-on: https://codeberg.org/skysthelimitt/selenite/pulls/1
This commit is contained in:
commit
828ea40863
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