Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Avoid creating escape characters on Windows #64

Merged
merged 1 commit into from

2 participants

@svieira

Mark strings passed to execfile as raw strings to avoid having "\activate_this.py" changed to "\x07ctivate_this.py".

@svieira svieira Avoid creating escape characters on Windows
Mark strings passed to `execfile` as raw strings to avoid 
having "\\activate_this.py" changed to "\x07ctivate_this.py".
bd63dc8
@wuub wuub merged commit befe453 into wuub:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 24, 2012
  1. @svieira

    Avoid creating escape characters on Windows

    svieira authored
    Mark strings passed to `execfile` as raw strings to avoid 
    having "\\activate_this.py" changed to "\x07ctivate_this.py".
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lang_integration.py
View
2  lang_integration.py
@@ -91,7 +91,7 @@ def run_virtualenv(self, choices, index):
(name, directory) = choices[index]
activate_file = os.path.join(directory, "activate_this.py")
- init_cmd = "execfile('{activate_file}', dict(__file__='{activate_file}')); import site; import sys; sys.ps1 = '({name}) >>> '; del sys;".format(name=name, activate_file=activate_file)
+ init_cmd = "execfile(r'{activate_file}', dict(__file__=r'{activate_file}')); import site; import sys; sys.ps1 = '({name}) >>> '; del sys;".format(name=name, activate_file=activate_file)
self.window.run_command("repl_open",
{
"type":"telnet",
Something went wrong with that request. Please try again.