VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Modules ipaddrr , netadrr and ipaddress python (https://forums.vandyke.com/showthread.php?t=12932)

jack_george 12-06-2017 12:59 PM

Modules ipaddrr , netadrr and ipaddress python
 
Hello,
i want to know if i can import modules like ipaddrr or netadrr or ipaddress of python in securecrt scripting as when i try to import them then run script in securecrt it give me error : no module name ipaddress.

BR,

bgagnon 12-06-2017 02:45 PM

Hi jack_george,

What version of SecureCRT are you using?

On what OS/platform?

Where did you import the modules?

jack_george 12-06-2017 11:39 PM

Hello,
version : 8.0.1
platform: windows
import them in python script

BR,

bgagnon 12-07-2017 08:43 AM

1 Attachment(s)
Hi Jack,

These are the default paths where SecureCRT looks for modules:

Code:

C:\Users\user\Desktop
C:\Program Files\VanDyke Software\SecureCRT
C:\Program Files\VanDyke Software\SecureCRT\vpython27.zip
C:\Users\user\Desktop\DLLs
C:\Users\user\Desktop\lib
C:\Users\user\Desktop\lib\plat-win
C:\Users\user\Desktop\lib\lib-tk
C:\Program Files\VanDyke Software\SecureCRT
C:\Program Files\VanDyke Software\SecureCRT\PythonLibraries
C:\Program Files\VanDyke Software\SecureCRT\SitePackages

The attached example script illustrates how you can import custom modules using custom paths.

jack_george 12-08-2017 01:02 AM

import CRT module in python script
 
Hello
is their method can help in order to import secure CRT module in python scripts?

BR,

bgagnon 12-08-2017 09:28 AM

Hi Jack,

Sorry, I do not know what you are asking. Please rephrase your request.

jack_george 12-09-2017 02:10 AM

run crt from python script
 
Hello,
what i mean can i import module crt to python script so i can run script direct without run it through securecrt program.

thnaks

bgagnon 12-11-2017 08:20 AM

Hi Jack,

I have added this thread to a feature request in our product enhancement database for the ability to import and use python modules which use the crt object. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include "Feature Request - Forum Thread #12932" in the subject line or use this form from the support page of our website.

You might check out one customer's solution posted here.


All times are GMT -6. The time now is 07:12 PM.