omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    No getpass.getuser???

    Pythonista
    2
    3
    1981
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JadedTuna
      JadedTuna last edited by

      Just noticed module getpass has no function getuser. How do I get current user's name then? Is that even possible?

      1 Reply Last reply Reply Quote 0
      • userista
        userista last edited by

        Check out the Note here. http://omz-software.com/pythonista/docs/library/getpass.html

        1 Reply Last reply Reply Quote 0
        • userista
          userista last edited by

          And to answer your question - if you want the user (which will always be mobile) you can use os.environ

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors