Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

How to use transcrypt directly in python code

Open streetartist opened this issue 4 years ago • 1 comments

I want to use transcrypt in my python code instead of using cmd.how can i do it

streetartist avatar Aug 15 '21 01:08 streetartist

I don't believe Transcrypt is designed to be used as a library where you can import it, but you can run it like any other program using the Python subrocess module:

import subprocess
subprocess.run(['transcrypt', 'myapp.py'])

That said, depending on your needs, it might make more sense to run it in a shell script instead of a Python file.

JennaSys avatar Aug 17 '21 06:08 JennaSys

Closing this issue due to no further comments.

JennaSys avatar Apr 23 '23 08:04 JennaSys