Skip to content

Commit 1263861

Browse files
authored
Merge pull request #221 from martinrioux/patch-2
Update cli_deploy.py
2 parents a8bb5fd + 6d1b0ab commit 1263861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyfrc/mains/cli_deploy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import shutil
1111
import tempfile
1212
import threading
13+
import getpass
1314

1415
from os.path import abspath, basename, dirname, join, splitext
1516
from pathlib import PurePosixPath
@@ -211,7 +212,7 @@ def _generate_build_data(self, robot_path) -> dict:
211212

212213
deploy_data = {
213214
"deploy-host": socket.gethostname(), # os.uname doesn't work on systems that use non-unix os
214-
"deploy-user": os.getlogin(),
215+
"deploy-user": getpass.getuser(),
215216
"deploy-date": datetime.datetime.now().replace(microsecond=0).isoformat(),
216217
"code-path": robot_path,
217218
}

0 commit comments

Comments
 (0)