Skip to content

Instantly share code, notes, and snippets.

@martinclaus
martinclaus / tljh_system_user
Last active July 7, 2021 06:42
Converts hub login names to unix system user names when using the tljh.UserCreatingSpawner
#!/usr/bin/env python
# Author: Martin Claus <mclaus@geomar.de>
import sys
# Maybe there is a better way to import tljh.
sys.path.insert(0, '/opt/tljh/hub/lib/python3.6/site-packages/')
from tljh.normalize import generate_system_username
import argparse