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

July 2025

S M T W T F S
  12345
6789101112
13141516171819
20 2122232425 26
2728293031  

Expand Cut Tags

No cut tags

Style Credit

Page generated Jan. 19th, 2026 03:29 am
Powered by Dreamwidth Studios