Select to view content in your preferred language

How cam i use a arcpy script to get the login name of the system user

1298
3
Jump to solution
09-07-2012 09:00 PM
OLANIYANOLAKUNLE
Frequent Contributor
How cam i use a arcpy script to get the login name of the system user and use the name to pupolate a field in a feature attribute table?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AlessandroCinnirella
Regular Contributor
import os name = os.environ.get('USERNAME') print name


once you get the name in the variable you can populate any attribute table using an insert or an update cursor

ciao,
AC

View solution in original post

0 Kudos
3 Replies
AlessandroCinnirella
Regular Contributor
import os name = os.environ.get('USERNAME') print name


once you get the name in the variable you can populate any attribute table using an insert or an update cursor

ciao,
AC
0 Kudos
OLANIYANOLAKUNLE
Frequent Contributor
Thanks that did it!
0 Kudos
OLANIYANOLAKUNLE
Frequent Contributor
Re: How can i use a arcpy script to get the login name of the system user
0 Kudos