Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'os' types/functions (exec, etc.) #1

Open
cadebrown opened this issue Dec 17, 2020 · 2 comments
Open

'os' types/functions (exec, etc.) #1

cadebrown opened this issue Dec 17, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request module Relating to a standard module

Comments

@cadebrown
Copy link
Owner

cadebrown commented Dec 17, 2020

There are a number of 'os' types/functions that need to be wrapped, specifically:

  • os.exec(cmd): Executes a command, which can either be a str (which should be split), or a list of string arguments to execute (i.e. will be argv). This may wrap multiple functions from the exec* functionality in C. Possible variations include: allow opening processes to be captured (i.e. stdin, stdout, and stderr)
  • os.stat (or os.path.stat) type, which should be platform agnostic (so no '.st_*' members, try and wrap them in a responsible manner)
  • Permission-based functions (access, chown, chmod, etc). Try and combine functionality wherever possible (i.e. reduce redundant functions)
  • os.path niceties, such as common prefix, basename, dirname, extension grabbing, and so forth
@gcrois
Copy link
Contributor

gcrois commented Dec 31, 2020

Rudimentary exec function implemented in commits 6085d43 and 303bd8c

@gcrois gcrois added enhancement New feature or request module Relating to a standard module labels Jan 3, 2021
@gcrois
Copy link
Contributor

gcrois commented Jan 4, 2021

Fully implemented the proc type in commits ee8ebe3 and ea33b6f, allowing for easy redirection of a process. Needs stability testing and bug fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module Relating to a standard module
Projects
None yet
Development

No branches or pull requests

2 participants