Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bottle import route, run, template, static_file, redirect, request
- from multiprocessing import Process
- import android
- def showurl():
- time.sleep(5)
- droid.webViewShow("http:\/\/localhost:8080")
- if __name__ == '__main__':
- droid = android.Android()
- port = int(os.environ.get('PORT', 8080))
- p = Process(target=showurl)
- p.start
- run(host='localhost', port=port, debug=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement