LLNL / py-hostlist

hostlist utility implemented in python
MIT License
6 stars 2 forks source link

Call hostlist.expand() from Python code #34

Open weijianwen opened 2 years ago

weijianwen commented 2 years ago

I wrote Python scripts to maintain a SLURM cluster. I wonder if it is feasible to call host.expand() from Python code.

I tried to import hostlist then call host.expand(), but got the following error.

AttributeError: module 'hostlist' has no attribute 'expand'

Thank you!