sublimetext3 - Set working directory to location of active script in SublimeREPL -


I use SublimeREPL with Sublime Text 3 whenever I booted SublimeREPL for commands in both my R and Python It contains the current working directory, which is set to the subtitle text installation directory. It is both on Windows and Mac OSX Often, I need to run code from r or Python, which opens a file that is in the R or py file Running is under normal circumstances (i.e. not using sublime text), it works fine, because the script is located to see the R or Python interpreter in the same directory.

However, with SublimeREPL, 'SublimaryPPL as a text, hence the RPL does not know where the program came from. Consequently, I must clearly specify the location of the file trying to use in each of my programs, which is very low, especially if my programs run (which they do).

If SublimeREPL is the current working directory to boot, is there a way to set the existing active script file in the same directory? This would be a good success, because this would mean that I have to restart REPL to use a file located in a different directory.

Enter image details here

< Div class = "post-text" itemprop = "text">

I have the same question and got an answer.

In your package / user folder, SublimeREPL / config / python / main.sublime-menu , for Python and IPython, where you Specify "cwd": "$ file_path" :

  [{"id": "device", "kids": [{"caption": " "Id": "replay_open", "c" ePondon: ":" Python "," id "": "Python", "children": [{"Caption": "Sublimer RPL", "Emmanic": "R", "id" "", "Encoding": "UTF 8", "CMD": ["/ python", "id": "repopitone", "melnik": "p", "algies": {"type": "subprocess" Path / to / anac "Python", "-i", "-u"], "cwd": "$ file_path", "syntax": "package / python / python .tm language", "external_id": "dragon", "extend_env "Ipython-anaconda" "id": "repl_python_ipython" "mnemonic": "PYTHONIOENCODING": "utf-8"}}, {"command": "repl_open", "title": "p", " True, "cmd": ["/ path / / anaconda / dragon", "-u", "$ {"} ":" "" ":" type ":" subprocess "and" encoding ":" UTF8 "," autocomplete_server " Package} / SublimeREPL / config / Python / Ipy_repl.py "]," cwd ":" $ file_path "," syntax ":" Package / Python / Python. TM language "," external_id ":" dragon "," extension_nv ": {" pithonoexoding ":" UTF-8 "" SUBLIMEREPL_EDITOR ":" $ editor "}}}]}]]}}}}]  

I think, this is the same for research

<. Html>

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -