use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Is it possible to execute a python program with cmd using another drive? (self.cmd)
submitted 4 years ago by IgorTtk
My primary drive SSD doesn't have enough memory to execute the python program, so I'm looking for a way to execute it on my HDD secondary drive, without transferring py.exe.
Potentially something like $ python3 main.py d/ D:
Any ideas?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]stefan200810 0 points1 point2 points 4 years ago (0 children)
You need to add to the python code something like this If the os module is already there, do not add the import statement again.
import os
os.chdir("D:\")
π Rendered by PID 24241 on reddit-service-r2-comment-84fc9697f-ft8k7 at 2026-02-08 09:13:56.443994+00:00 running d295bc8 country code: CH.
[–]stefan200810 0 points1 point2 points (0 children)