-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add way to check for tinkerpath in enviorment, if masterhost and worker nodes have different tinkerpaths #205
Comments
misterbrandonwalker
changed the title
Add way to check for tinkerpath in enviorment, if masterhost and worker nodes have different tinkrepaths
Add way to check for tinkerpath in enviorment, if masterhost and worker nodes have different tinkerpaths
Mar 12, 2021
Hello Brandon,
Instead of suggesting the code changes in an issue, could you make a pull
request that includes these code changes?
Thanks,
- Lee-Ping
*From:* Brandon Walker ***@***.***>
*Sent:* Friday, March 12, 2021 10:35 AM
*To:* leeping/forcebalance ***@***.***>
*Cc:* Subscribed ***@***.***>
*Subject:* [leeping/forcebalance] Add way to check for tinkerpath in
enviorment, if masterhost and worker nodes have different tinkerpaths (#205)
in tinkerio.py
(add this function to Tinker class)
def CheckEnvironmentTinker(self):
tinkerpath = os.getenv("TINKERPATH", default="")
return tinkerpath
inside (def calltinker)
tinkpath=self.CheckEnvironmentTinker()
if tinkpath!='' and tinkpath!=None:
tinkerpath=tinkpath
else:
tinkerpath=self.tinkerpath
prog = os.path.join(tinkerpath, csplit[0])
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#205>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK76GHDUFN5AO4URYGI7QLTDJGDDANCNFSM4ZCYH52A>
.
|
Sure, sounds good.
…On Fri, Mar 12, 2021 at 12:41 PM Lee-Ping Wang ***@***.***> wrote:
Hello Brandon,
Instead of suggesting the code changes in an issue, could you make a pull
request that includes these code changes?
Thanks,
- Lee-Ping
*From:* Brandon Walker ***@***.***>
*Sent:* Friday, March 12, 2021 10:35 AM
*To:* leeping/forcebalance ***@***.***>
*Cc:* Subscribed ***@***.***>
*Subject:* [leeping/forcebalance] Add way to check for tinkerpath in
enviorment, if masterhost and worker nodes have different tinkerpaths
(#205)
in tinkerio.py
(add this function to Tinker class)
def CheckEnvironmentTinker(self):
tinkerpath = os.getenv("TINKERPATH", default="")
return tinkerpath
inside (def calltinker)
tinkpath=self.CheckEnvironmentTinker()
if tinkpath!='' and tinkpath!=None:
tinkerpath=tinkpath
else:
tinkerpath=self.tinkerpath
prog = os.path.join(tinkerpath, csplit[0])
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#205>, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAK76GHDUFN5AO4URYGI7QLTDJGDDANCNFSM4ZCYH52A
>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#205 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKNB26PX2RUYLIA3T3MLJ4DTDJN5FANCNFSM4ZCYH52A>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in tinkerio.py
(add this function to Tinker class)
def CheckEnvironmentTinker(self):
tinkerpath = os.getenv("TINKERPATH", default="")
return tinkerpath
inside (def calltinker)
tinkpath=self.CheckEnvironmentTinker()
if tinkpath!='' and tinkpath!=None:
tinkerpath=tinkpath
else:
tinkerpath=self.tinkerpath
prog = os.path.join(tinkerpath, csplit[0])
The text was updated successfully, but these errors were encountered: