arethinn: glowing green spiral (Default)
Can anyone tell me how to command-line and/or shell execute a Python script in windows? I am still mucking about with ljmigrate and need to do this:

If the migration failed for many of your posts, because of LiveJournal flakiness or troubles with your network connection, you can re-run the tool to retry the migration:

./ljmigrate.py --retry


but that is written in the context of running it in Terminal on a Mac. Up to this point I have just been double-clicking the .py because that causes Windows to launch python.exe (the interpreter, I presume?) and run the script. How do I do this either from a Windows cmd box (can you?) or from the IDLE GUI or the text shell? The help files all seem to be about actually coding and way above the level of lusers like me. I have a braintickle I may be able to do it by constructing a shortcut of a form similar to "c:\python251\python.exe --c:\[pathtoscript] --retry" but I don't know the proper syntax. Halp?

Profile

arethinn: glowing green spiral (Default)
Arethinn

March 2026

S M T W T F S
1234567
891011121314
1516171819 2021
22232425262728
293031    

Expand Cut Tags

No cut tags

Style Credit

Page generated Mar. 21st, 2026 09:50 pm
Powered by Dreamwidth Studios