#1
|
|||
|
|||
call script.py
is there any esay way to call a python script into the script thats running
file 1 main.py Code:
# $language = "python" # $interface = "1.0" crt.Screen.Synchronous = True main(): import os strHome = os.path.expanduser('~') strPathToFile = "{0}/Documents/test1.py".format(strHome) strPathToFile = strPathToFile.replace('\\','/') run(strPathToFile) <-- this is where I need help second file test1.py Code:
# $language = "python" # $interface = "1.0" crt.Screen.Synchronous = True def main(): crt.Dialog.MessageBox("hello world") main() |
#2
|
|||
|
|||
Hi Neisany,
It's more a Python question than a SecureCRT question, but when I googled it, the answer was to use import. I hope this helps.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|