This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import sys | |
from bottle import Bottle, static_file, run | |
if __name__ == "__main__" and len(sys.argv) > 1: | |
f = os.path.abspath(sys.argv[1]) | |
if not os.path.exists(f): | |
raise Exception("File not found: {}".format(f)) |