We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046dc6f commit ed03aa7Copy full SHA for ed03aa7
tests/test_interpreter.py
@@ -54,8 +54,9 @@ def test_skills():
54
# skills_path = '/01OS/server/skills'
55
# interpreter.computer.skills.path = skills_path
56
print(interpreter.computer.skills.path)
57
- for file in os.listdir(interpreter.computer.skills.path):
58
- os.remove(os.path.join(interpreter.computer.skills.path, file))
+ if os.path.exists(interpreter.computer.skills.path):
+ for file in os.listdir(interpreter.computer.skills.path):
59
+ os.remove(os.path.join(interpreter.computer.skills.path, file))
60
print("Path: ", interpreter.computer.skills.path)
61
print("Files in the path: ")
62
interpreter.computer.run("python", "def testing_skilsl():\n print('hi')")
0 commit comments