Commit 623c9a7b authored by Eric Coissac's avatar Eric Coissac

--no commit message

--no commit message
parent 7b5a55dd
...@@ -37232,13 +37232,13 @@ CwABBPUBAAAEFAAAAFBLBQYAAAAAlwGXAVqqAABMtB8AAAA=\ ...@@ -37232,13 +37232,13 @@ CwABBPUBAAAEFAAAAFBLBQYAAAAAlwGXAVqqAABMtB8AAAA=\
install_script="""\ install_script="""\
#!/bin/bash #!/bin/bash
binpath=%s/bin binpath='%s/bin'
system=`uname -s` system=`uname -s`
if [ "$system" == "Darwin" ] if [ "$system" == "Darwin" ]
then then
loginshell=`dscl . -read /Users/\`whoami\` UserShell | awk '{print $NF}'` loginshell=`dscl . -read /Users/\`whoami\` UserShell | awk '{print $NF}'`
parent=`$binpath/pidname $PPID | awk '{print $NF}'` parent=`"$binpath/pidname" $PPID | awk '{print $NF}'`
else else
loginshell=`getent passwd \`whoami\` | awk -F ':' '{print $NF}'` loginshell=`getent passwd \`whoami\` | awk -F ':' '{print $NF}'`
parent=`readlink /proc/$PPID/exe` parent=`readlink /proc/$PPID/exe`
...@@ -37263,7 +37263,7 @@ else ...@@ -37263,7 +37263,7 @@ else
activate="$binpath/activate" activate="$binpath/activate"
fi fi
$target -c "source $activate; $target" $target -c "source \\"$activate\\"; $target"
echo echo
echo %s are no more activated, Bye... echo %s are no more activated, Bye...
...@@ -37446,6 +37446,9 @@ def main(): ...@@ -37446,6 +37446,9 @@ def main():
st = os.stat(activate) st = os.stat(activate)
os.chmod(activate, st.st_mode | stat.S_IEXEC) os.chmod(activate, st.st_mode | stat.S_IEXEC)
shutil.rmtree(os.path.join(virtualenvname,'src'), ignore_errors=True)
shutil.copytree(filename, os.path.join(virtualenvname,'src'), symlinks=True)
cleanModules() cleanModules()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment