Skip to content

Commit 771fd40

Browse files
1 parent 5b3298f commit 771fd40

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

butterfly/runmanager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ def pid(self):
7777

7878
def getShellinit(self):
7979
"""Get shellinit for setting up initial environment for docker."""
80-
os.environ['PATH'] += ';%s' % r'"C:\Program Files (x86)\Git\bin"'
81-
os.environ['PATH'] += ';%s' % self.dockerPath
80+
if r'"C:\Program Files (x86)\Git\bin"' not in os.environ['PATH']:
81+
os.environ['PATH'] += ';%s' % r'"C:\Program Files (x86)\Git\bin"'
82+
if self.dockerPath not in os.environ['PATH']:
83+
os.environ['PATH'] += ';%s' % self.dockerPath
8284

8385
if self.isUsingDockerMachine:
8486
# version 1606 and higher

butterfly/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Version(object):
1111
OFVer = "4.0"
1212
OFFullVer = "v1612+"
1313
isUsingDockerMachine = True # useful to run OpenFOAM container
14-
lastUpdated = datetime(year=2017, month=3, day=14, hour=12, minute=00)
14+
lastUpdated = datetime(year=2017, month=5, day=11, hour=9, minute=44)
1515

1616
def duplicate(self):
1717
"""Return a copy of this object."""

0 commit comments

Comments
 (0)