Comments (1)
サイトのプログラムを以下のように書き換えると取り敢えず動いた。
$ 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)')
from ome2019.
Related Issues (20)
- 第7回rpz-gpio-cl.asからrpz-gpio.asへ移行する
- 第7回センサーの関数を3回と同じにしたい(sensor.hspが動作しないため) HOT 1
- 第8回実行画面にHeart Rails Inc.の表記が必要 HOT 1
- hsp3cl で rpz-gpio.as の gpioin が gpio の状態に関わらず 0 を返す件 HOT 2
- 第8回 eki.hspの実行結果がテキストと異なる HOT 2
- 第5回 問題5-20 05/block3_angle.hsp で#Error 7 in line 49 HOT 3
- 第5回 kyokasyo.pdf P23の 3.7 FABOボリュームの変化が起きない(ように見えてしまう) HOT 3
- /home/pi/ome/bin/run-linux-gmm.sh に実行権限がない HOT 3
- Resolve "/home/pi/ome/bin/run-linux-gmm.sh に実行権限がない" - [merged] HOT 5
- convert_pattern で 255 signals で truncate する HOT 3
- 8回目のwebスクレイピングのweblioが動かない
- GitHub への移行
- ソースコードを含める
- [PLACEHOLDER] - for issue #4
- [PLACEHOLDER] - for issue #71
- 第3回のセンサーボードの光センサー初期化の説明文について HOT 1
- OLED の処理が Python
- webスクレイピングのpython2を使わないようにする。
- cgpioとcgpioinがraspberrypi400だと使えない
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ome2019.