Tag Info

Hot answers tagged

2

tldr: you don't Python is one of those things you don't want to mess with too much since important things in your OS rely on it. You could break your system horribly. For testing purposes, you might be able to give the full path to python 2.7 explicitly in your python scripts. This is kinda hacky and dosen't scale. Do only if you know that the production ...


1

You can force emacs to always open files using absolute real names: (setq find-file-visit-truename t)


1

Use parentheses: (sleep 5; python cmd1 &); (sleep 10; python cmd2 &)


1

you can look into tools like UXPacker or AdvancedInstaller to build the outer package. That said, these tools are usually problematic as almost all antivirus systems treat these kinds of packers as suspicious if not outright dangerous. depending on the AV, it might even delete them on execute, or even prevent them from being downloaded at all.


1

Updating Chen's solution above, currently (tested on Emacs 24.4.1) the commands have been renamed. So, assuming you want to indent according to the variable python-indent, the commands are python-indent-shift-left and python-indent-shift-right. You can: issue them by typing M-x python-indent-shift-right or M-x python-indent-shift-left use the default ...


1

Changing the shebang (#! python3) may help you, but you will have a problem: if your python script has parameters, they will be cut off when you run command somepythonfile.py your_parameters You will get py.exe running with just "somepythonfile.py" and NO parameters, believe me. The method which worked for me is next: run the app ...



Only top voted, non community-wiki answers of a minimum length are eligible