Can you use python to load a quick ruby script? [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was curious if you could use python to load a quick ruby script? then continue with python.

The simplest way is to use call from subprocess module:
from subprocess import call
call(['ruby', 'quick_script.rb', 'some_parameter'])
Ruby should be available from the path variable.

Related

how can I observe a change in a python var [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Hi I'm trying to catch the change in the paperclip of my computer with the library pyperclip something same as
url=pyperclip.paste()
I want to create a thread which can append all the urls into a list my script, but I don't know how to could I do it
Thanks for your time and help c:
Did you check the documentation or the source code at all? That's all I did. pyperclip supports waitForPaste and waitForNewPaste methods that can do this.

How do I open an application using Python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How do I open an app like Minecraft using os or subprocess? I went through a few videos and none of them worked. Do I just use the name of the app or its location?
For this example, you could use:
subprocess.run(r'"C:\path_to_minecraft\minecraft"',shell=True)
Or if you have Windows shortcuts you add the .lnk extension in the call:
subprocess.run(r'"C:\path_to_minecraft\minecraft.lnk"',shell=True)
this works.
import os
os.system("your app.exe")

How could MQL4 communicate with python? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to communicate with each other the modes I wrote in the python programming language with MQL4, which is the fastest way to do this? Can there be another solution in this regard that zeromq seems difficult to install and use?

How to minimize all non active windows using python code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is there any way to minimize all non active windows using python, leaving the active windows.
There are several ways to do this based on your exact purpose. (Please clarify what exactly you want to do)
However in general these modules are useful for such tasks:
PyAutoGUI; https://pypi.org/project/PyAutoGUI/
Win32gui; https://pypi.org/project/win32gui/

how to incorporate parallel python with django [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I was wondering if there is a way to incorporate pp (Parallel Python) with django. This would be great because I have multiple computers and I want to use them to better handle the requests.
paralel python is for litle bit different tasks, and for this purposes it is better to use nginx as loadbalancer.

Categories