Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-06-2017, 12:59 PM
jack_george jack_george is offline
Registered User
 
Join Date: Nov 2017
Posts: 11
Smile 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,
Reply With Quote
  #2  
Old 12-06-2017, 02:45 PM
bgagnon bgagnon is online now
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,181
Hi jack_george,

What version of SecureCRT are you using?

On what OS/platform?

Where did you import the modules?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 12-06-2017, 11:39 PM
jack_george jack_george is offline
Registered User
 
Join Date: Nov 2017
Posts: 11
Hello,
version : 8.0.1
platform: windows
import them in python script

BR,
Reply With Quote
  #4  
Old 12-07-2017, 08:43 AM
bgagnon bgagnon is online now
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,181
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.
Attached Files
File Type: txt How to Import Custom Modules Using Custom Paths.py.txt (1.3 KB, 10 views)
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 12-08-2017, 01:02 AM
jack_george jack_george is offline
Registered User
 
Join Date: Nov 2017
Posts: 11
Talking import CRT module in python script

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

BR,
Reply With Quote
  #6  
Old 12-08-2017, 09:28 AM
bgagnon bgagnon is online now
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,181
Hi Jack,

Sorry, I do not know what you are asking. Please rephrase your request.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #7  
Old 12-09-2017, 02:10 AM
jack_george jack_george is offline
Registered User
 
Join Date: Nov 2017
Posts: 11
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
Reply With Quote
  #8  
Old 12-11-2017, 08:20 AM
bgagnon bgagnon is online now
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,181
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.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
python


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:45 PM.