MartinT commited on
Commit
3d7c485
1 Parent(s): e5af6ea

fix: Make autocomplete work.

Browse files
Files changed (1) hide show
  1. examples/tour.py +2 -9
examples/tour.py CHANGED
@@ -186,20 +186,13 @@ mobile_blurb_height = 76
186
 
187
  async def setup_page(q: Q):
188
  py_content = ''
189
- parser_path = os.path.join(example_dir, 'tour_autocomplete_parser.py')
190
- utils_path = os.path.join(example_dir, 'tour_autocomplete_utils.py')
191
- # In prod.
192
  if os.path.exists(parser_path) and os.path.exists(utils_path):
193
  with open(parser_path, 'r') as f:
194
  py_content = f.read()
195
  with open(utils_path, 'r') as f:
196
  py_content += f.read()
197
- # When run in development from Wave repo.
198
- elif os.path.exists(vsc_extension_path):
199
- with open(os.path.join(vsc_extension_path, 'server', 'parser.py'), 'r') as f:
200
- py_content = f.read()
201
- with open(os.path.join(vsc_extension_path, 'server', 'utils.py'), 'r') as f:
202
- py_content += f.read()
203
 
204
  if py_content:
205
  py_content += '''
 
186
 
187
  async def setup_page(q: Q):
188
  py_content = ''
189
+ parser_path = os.path.join(example_dir, 'parser.py')
190
+ utils_path = os.path.join(example_dir, 'utils.py')
 
191
  if os.path.exists(parser_path) and os.path.exists(utils_path):
192
  with open(parser_path, 'r') as f:
193
  py_content = f.read()
194
  with open(utils_path, 'r') as f:
195
  py_content += f.read()
 
 
 
 
 
 
196
 
197
  if py_content:
198
  py_content += '''