perler commited on
Commit
d19c7d3
·
1 Parent(s): 52a0fc5

maybe fix paths for import

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -54,12 +54,16 @@ def main():
54
  '''
55
 
56
  def convert_to_ply(input_point_cloud_upload: str):
57
- print(subprocess.check_output(['ls', '-l']))
58
 
 
 
59
  import os
60
- os.chdir(os.path.dirname('./ppsurf'))
61
 
62
- print(subprocess.check_output(['ls', '-l']))
 
 
 
63
 
64
  print('Inputs:', input_point_cloud_upload)
65
  input_shape = input_point_cloud_upload
 
54
  '''
55
 
56
  def convert_to_ply(input_point_cloud_upload: str):
 
57
 
58
+ # add absolute path to import dirs
59
+ import sys
60
  import os
61
+ sys.path.append(os.path.abspath('ppsurf'))
62
 
63
+ print('before\n', subprocess.check_output('ls'))
64
+ import os
65
+ os.chdir('ppsurf')
66
+ print('after\n', subprocess.check_output('ls'))
67
 
68
  print('Inputs:', input_point_cloud_upload)
69
  input_shape = input_point_cloud_upload