Commits

anatoly techtonik  committed 1ad735d

fix to make it executable on unix

  • Participants
  • Parent commits 9d49bee
  • Tags 0.1

Comments (0)

Files changed (1)

+#!/usr/bin/env python
 """
 Cross-platform operating system tool to 'work' with user accounts
 
 def users_list():
     usernames = []
     if os.name == 'posix':
+        import pwd
         usernames = [x[0] for x in pwd.getpwall()]
     elif os.name == 'macos':
         usernames = run('dscl . list /users').splitlines()
 
 
 for x in users_list():
-  print x
+  print x