Skip to content

Commit

Permalink
Merge pull request #221 from martinrioux/patch-2
Browse files Browse the repository at this point in the history
Update cli_deploy.py
  • Loading branch information
virtuald authored Sep 28, 2023
2 parents a8bb5fd + 6d1b0ab commit 1263861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyfrc/mains/cli_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import shutil
import tempfile
import threading
import getpass

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

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

0 comments on commit 1263861

Please sign in to comment.