-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
The example for cloudabi for FreeBSD shows passing a directory:
tmpdir: !file
path: tmp-unittest
I tried to follow this example but I got:
% cloudabi-run /usr/local/x86_64-unknown-cloudabi/bin/python3 < zv.yaml
Fatal Python error: can't create sys.argdata
IsADirectoryError: [Errno 31] Is a directory: 3
Current thread 0x00007fffffffcd20 (most recent call first):
Abort
This is the yaml spec I tried:
% cat zv.yaml
%TAG ! tag:nuxi.nl,2015:cloudabi/
---
stderr: !fd stderr # Let Python write backtraces to stderr.
path: !file # Search path for Python modules.
path: /usr/local/x86_64-unknown-cloudabi/lib/python3.6
cwd: !file # Local (in-development) python modules.
path: .
args: # Arguments exposed as sys.argdata.
stuff: junk
cwd: !file
path: .
command: >- # Inline Python script, like 'python -c'.
from sys import argdata, stderr;
import main;
print(argdata['cwd'], file=stderr)
Metadata
Metadata
Assignees
Labels
No labels