Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflows
SciTrace
example-packages
scitrace-hello-world-py
Commits
7254fe96
Commit
7254fe96
authored
Aug 31, 2022
by
Yori Fournier
Browse files
adding further debug info
parent
01ec27aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
hello-world/drun.sh
View file @
7254fe96
.
~/env/bin/activate
id
ls
-l
python hello_world.py
hello-world/hello_world.py
View file @
7254fe96
import
os
print
(
"Trying to write 'Hello, world!' into products/hello.txt"
)
try
:
with
open
(
"products/hello.txt"
,
"w"
)
as
fd
:
fd
.
write
(
"Hello, world!"
)
...
...
@@ -17,4 +19,6 @@ except PermissionError:
except
FileNotFoundError
:
raise
print
(
"Done!"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment