Skip to content

Commit 7a61151

Browse files
committed
fix path
1 parent e5b0de4 commit 7a61151

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ def main():
5757
}]
5858
}
5959
# loop through gs files in webflow directory
60-
for file in os.listdir(f'repo/{ENV.PROJECT_PATH}'):
60+
repo_path = f'repo/{ENV.PROJECT_PATH}'
61+
for file in os.listdir(repo_path):
6162
if file.endswith('.gs'):
62-
with open(os.path.join('.', file), 'r') as f:
63+
with open(os.path.join(repo_path, file), 'r') as f:
6364
request['files'].append({
6465
'name': file,
6566
'type': 'SERVER_JS',

0 commit comments

Comments
 (0)