Giter VIP home page Giter VIP logo

Comments (1)

shun7b avatar shun7b commented on July 29, 2024

サイトのプログラムを以下のように書き換えると取り敢えず動いた。
$ diff ./websever.py ./sever.py

1d0

< #!/usr/bin/en python3

96d94

< import subprocess

879,895c877

< try:

< st = os.stat(path)

< except os.error:

< return False

< if(path[-4:] == '.hsp'):

< try:

< subprocess.check_output('hspcmp -i -u --compath=/home/pi/ome/bin/common/ ' + path, shell=True)

< except subprocess.CalledProcessError as e:

< print(e.cmd)

< print(e.output)

< return False

< return True

< elif(path[-3:] == '.ax'):

< return True

< else:

< return st.st_mode & 0b0111 != 0

< #return os.access(path, os.X_OK)

--- 
> return os.access(path, os.X_OK)

1102,1107c1084

< if(scriptfile[-3:] == '.ax'):

< os.execve('/home/pi/ome/bin/hsp3cl', ['hsp3cl', scriptfile], env)

< elif(scriptfile[-4:] == '.hsp'):

< os.execve('/home/pi/ome/bin/hsp3cl', ['hsp3cl', scriptfile[:-4] + '.ax'], env)

< else:

< os.execve(scriptfile, args, env)

--- 

> os.execve(scriptfile, args, env)

1192c1169

< parser.add_argument('--cgi', action='store_true',default=True,

---

> parser.add_argument('--cgi', action='store_true',

1200c1177

< parser.add_argument('port', action='store', default=3000, type=int,

--- 

> parser.add_argument('port', action='store', default=8000, type=int,

1202c1179

< help='specify alternate port (default: 3000)')

--- 

> help='specify alternate port (default: 8000)')

image

from ome2019.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.