Skip to content

Commit 7b48966

Browse files
committed
🔧 Fix path issue
1 parent e1156ce commit 7b48966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exec_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def execute_file(input_file: str, code_file: str, output_file: str, name: str):
3939

4040
def run_code(project_name: str):
4141
print(f'----> Project {repr(project_name)} starting...')
42-
os.chdir(project_name)
42+
os.chdir(os.path.join('resources', project_name))
4343
if os.path.exists('output'):
4444
shutil.rmtree('output')
4545
os.mkdir('output')
@@ -51,7 +51,7 @@ def run_code(project_name: str):
5151
execute_file(input_file, 'code.py', out_file, project_name)
5252
print('=' * 100)
5353
print(f'----> Project {repr(project_name)} done.')
54-
os.chdir('..')
54+
os.chdir(os.path.join('..', '..'))
5555

5656

5757
def main():

0 commit comments

Comments
 (0)