Spaces:
Runtime error
Runtime error
maybe fix paths for import
Browse files
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 |
-
|
61 |
|
62 |
-
print(subprocess.check_output(
|
|
|
|
|
|
|
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
|