GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GateOne/run_gateone.py at master · devtrack/GateOne

Expand file tree

/

run_gateone.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
34 lines (27 loc) · 1.09 KB
/

run_gateone.py

Copy path

File metadata and controls

executable file
·
34 lines (27 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python
"""
This script is meant for users that wish to run Gate One out of this (GateOne)
directory (as opposed to running setup.py). If you plan to (or already ran)
setup.py please use the 'gateone' script which gets installed in your $PATH
automatically.
"""
import os, sys
WORKING_DIR = os.path.dirname(os.path.abspath(__file__))
setup_py = os.path.join(WORKING_DIR, 'setup.py')
# Insert the path to this script's directory so that the Python interpreter can
# import gateone, termio, terminal, and onoff:
sys.path.insert(0, WORKING_DIR)
# Create the egg-info directory so entry points will work
egg_info_dir = os.path.join(WORKING_DIR, 'gateone.egg-info')
if not os.path.isdir(egg_info_dir):
try:
from commands import getstatusoutput
except ImportError: # Python 3
from subprocess import getstatusoutput
retcode, output = getstatusoutput('python %s egg_info' % setup_py)
if retcode != 0:
print(
"Error: Could not create %s. Permissions problem?" % egg_info_dir)
sys.exit(2)
from gateone.core.server import main
main(installed=False)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.