Skip to content

Commit

Permalink
ENG-3659 Disable tmp cleanup for P4Python connections (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-johnson authored Sep 2, 2020
1 parent 6b9229d commit d509189
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/perforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(self, root=None, view=None, stream=None,
self.p4config = os.path.join(self.root, 'p4config')

self.perforce = P4()
self.perforce.disable_tmp_cleanup() # Required to use multiple P4 connections in parallel safely
self.perforce.exception_level = 1 # Only errors are raised as exceptions
logger = logging.getLogger("p4python")
logger.setLevel(logging.INFO)
Expand Down

0 comments on commit d509189

Please sign in to comment.