Skip to main content

All Questions

Tagged with
0 votes
1 answer
845 views

Running python script from wscript fails to activate conda

For some reasons I would like to execute a python script from a vbs-script. It seems that conda isn't activated when I run the script. The pythonfile ImportPandas.py has the following code: print('\n--...
Jacob Arén's user avatar
1 vote
0 answers
256 views

Can python 3 be used as scripting engine for an "ActiveX Scripting Host"?

I have to convert an existing python 2.7.15 script to python 3.7.4. The existing script is launched by an programm which is an 'ActiveX Scripting Host' and works fine. The problem I encountered is ...
R0lit's user avatar
  • 11
2 votes
0 answers
535 views

Python script suddenly no longer running when being called by VBA

EDIT: I made an error when posting below in saying that it worked when running from terminal (I must have tested earlier.) This problem was solved by using the python.exe program in the environment (...
slny06's user avatar
  • 67
3 votes
4 answers
3k views

Call python script from vba with wsh

I need to call a python script from vba which works fine by using the shell. Sub CallPythonScript() Call Shell("C:\Program Files (x86)\Python27\python.exe C:\Users\Markus\BrowseDirectory.py")...
Billi B's user avatar
  • 41
6 votes
2 answers
2k views

Python, create shortcut with two paths and argument

I'm trying to create a shortcut through python that will launch a file in another program with an argument. E.g: "C:\file.exe" "C:\folder\file.ext" argument The code I've tried messing with: from ...
coco4l's user avatar
  • 115
2 votes
0 answers
201 views

Running WScript within Laravel

I'm trying to spawn a background python program from PHP. I can successfully do it locally using PHP but can't get it to work through Laravel/IIS. I think this is most likely due to a security setting ...
holly_whitney's user avatar
0 votes
1 answer
1k views

Is there an equivalent of WScript.ConnectObject in python?

I'm reimplementing a simple WSH script interacting with a COM object ("CANalyzer.Application" if you must know) in python using win32com. I'm blocked at a point where the script calls ConnectObject ...
Dmitry Grigoryev's user avatar
4 votes
2 answers
2k views

Cannot get python scripting working under WSH

I'm trying to get WSH to run Python .pys scripts and I'm hitting a wall - I've tried this on two machines now, W7x64 and Server2012, same result both time, cscript always comes back with: CScript ...
gh0st's user avatar
  • 87
1 vote
1 answer
499 views

Build Java project with waf

I have used this demo code to create a wscript that builds my java project. Now I want a jar file to be created in a different output directory than the one my class files are created in. When I try ...
jteichert's user avatar
  • 577
2 votes
2 answers
491 views

Dialog box unresponsive with Windows Script Host (Python)

I am trying to modify the Print Setup option found under File > Print Setup. I am using Windows Script Host with Python. I use the Alt + F followed by S to open the appropriate dialogue box: ...
jaynp's user avatar
  • 3,325
0 votes
0 answers
503 views

CScript Unicode flag doesn't work in a Python program in Windows 8

I have an application that uses Python 2.5 on Windows. It shells out to a WScript to get some data. The returned data could have content in many languages, so I need to support obtaining Unicode data. ...
garlon4's user avatar
  • 1,252
1 vote
1 answer
299 views

waf automating qt configuration

I am using waf wscript for making a project. The problem I am facing is including the qt specific headers: lib and libpath. I have fair knowledge of pkg-config tool. There are .pc files in /usr/lib/...
Vihaan Verma's user avatar
5 votes
2 answers
3k views

vim creating alias for frequently used command [duplicate]

Possible Duplicate: Aliasing a command in vim So I have to edit waf wscript files a lot . Everytime I execute this command to set the filetype set filetype=python is there a way to set up an ...
Vihaan Verma's user avatar
1 vote
2 answers
831 views

waf configuration for qt debug file to be included

I m writing a wscript for implementing code which includes QDebug #include <QDebug> In my wscript for configuring qt I have these lines specified def configure(conf): conf.env....
Vihaan Verma's user avatar
2 votes
2 answers
1k views

Building a QT project with WAF

I am trying to building my project using waf.The Project is complied properly but there is some link error.Its fails to link to with the Resources file (.qrc file) main.cpp.1.o: In function main': ...
user avatar

15 30 50 per page