Command-line option equiv of PYTHONPATH

2007-04-26 Thread Rajesh
Hi,

The '-I' option adds the path to the list of directories that
contains modules that can be included in a script. I can use it as "#!/
usr/bin/perl -I" thereby not asking the user of
the script to set the  in their environment.

Is there any equivalent command-line option to the python binary or a
command-line version of PYTHONPATH?

Regards
Rajesh

-- 
http://mail.python.org/mailman/listinfo/python-list


Crystal Concepts offering PHP-MYSQL & JAVA/J2EE

2007-04-27 Thread Rajesh
Crystal Concepts offering PHP-MYSQL & JAVA/J2EE
courses on short term basis.
For details contact,
19/2 New No 182 Kaliamman Koil Street,
Virugambakkam
Chennai 600 092
mail: [EMAIL PROTECTED]
Mobile: 98407-28150

-- 
http://mail.python.org/mailman/listinfo/python-list


pls help me install 3.5 and 2.7.10

2015-10-06 Thread rajesh thanu
[14C0:1718][2015-10-06T20:09:57]i001: Burn v3.10.0.1823, Windows v6.1
(Build 7601: Service Pack 1), path:
C:\Users\raj\Downloads\python-3.5.0-webinstall.exe
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'ActionLikeInstalling' to value 'Installing'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'ActionLikeInstallation' to value 'Setup'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'ShortVersion' to value '3.5'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'ShortVersionNoDot' to value '35'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'InstallAllUsers' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'InstallLauncherAllUsers' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'TargetDir' to value ''
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'DefaultAllUsersTargetDir' to value '[ProgramFilesFolder]Python
[ShortVersion]'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'TargetPlatform' to value 'x86'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'DefaultJustForMeTargetDir' to value
'[LocalAppDataFolder]Programs\Python\Python[ShortVersionNoDot]-32'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'OptionalFeaturesRegistryKey' to value
'Software\Python\PythonCore\[ShortVersion]-32\InstalledFeatures'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'TargetDirRegistryKey' to value
'Software\Python\PythonCore\[ShortVersion]-32\InstallPath'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'DefaultCustomTargetDir' to value ''
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'InstallAllUsersState' to value 'enabled'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'InstallLauncherAllUsersState' to value 'enabled'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'CustomInstallLauncherAllUsersState' to value
'[InstallLauncherAllUsersState]'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'TargetDirState' to value 'enabled'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'CustomBrowseButtonState' to value 'enabled'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_core' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_exe' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_dev' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_lib' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_test' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_doc' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_tools' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_tcltk' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_pip' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_launcher' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_symbols' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Include_debug' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'LauncherOnly' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'AssociateFiles' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'Shortcuts' to value '1'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'PrependPath' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'CompileAll' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing numeric variable
'SimpleInstall' to value '0'
[14C0:1718][2015-10-06T20:09:57]i000: Initializing string variable
'SimpleInstallDescription' to value ''
[14C0:1718][2015-10-06T20:09:57]i009: Command Line: '-burn.unelevated
BurnPipe.{B3FE2E0A-C963-4F43-9B16-7706F1471DA1}
{AD66A7E6-551E-4F74-871C-78CDC3FABCA9} 4796'
[14C0:1718][2015-10-06T20:09:57]i000: Setting string variable
'WixBundleLog' to value 'C:\Users\raj\AppData\Local\Temp\Python 3.5.0
(32-bit)_20151006200957.log'
[14C0:1718][2015-10-06T20:09:57]i000: Setting string variable
'WixBundleOriginalSource' to value
'C:\Users\raj\Downloads\python-3.5.0-webinstall.exe'
[14C0:1718][2015-10-06T20:09:57]i000: Setting string variable
'WixBundleOriginalSourceFolder' to value 'C:\Users\raj\Downloads\'
[14C0:1718][2015-10-06T20:09:57]i000: Setting string variable
'WixBundleName' to value 'Python 3.5.0 (32-bit)'
[14C0:1718][2015-10-06T20:09:57]i000: Setting string variable
'WixBundleManufacturer' to value 'Python Software Foundation'
[14C0:1718][20

pxssh sendline() cmd

2013-02-08 Thread rajesh kumar
Hi

I need help in pxssh.

Steps :
1) I was login into remote machine usning pxssh and the prompt is '$'.
2) After successful login running some command and the prompt is '>'.
3) Here onwards I want to execute cli commands by using sendline().

My requirement: I need to pass arguments to sendline().
var = "00:00:00:00:00:00:00"
name = F2

Example : sendline (X Y var name)

in above example X and Y are keywords separated by space. var and name are 
arguments.

Could any one help quickly. 

Note : If I use sendline(X Y 00:00:00:00:00:00:00  F2) was working fine.
 
-- 
http://mail.python.org/mailman/listinfo/python-list


minimize a program into an icon on the taskbar.

2006-02-27 Thread Rajesh Sathyamoorthy

			Hi,



I would know how to minimize a program (wxpython app) into an icon on
the taskbar on windows (the one at the side near the clock, i can't
remember what is it called.)



Is it easy to be done? Is there a way to do the same thing on Linux?



Thank You.
-- 
http://mail.python.org/mailman/listinfo/python-list

Calculating md5 checksums.

2006-03-03 Thread Rajesh Sathyamoorthy
Hi,How do you calculate the md5 checksum of a file?so far  i got this,import md5obj = md5.new()file = open( 'filename',  'rb') data = "">obj.update(data)checksum = md5.digest
()Is this correct? Is there anything else i should do before comparing the checksum with the one provided for the file?Thank You. 
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Calculating md5 checksums.

2006-03-03 Thread Rajesh Sathyamoorthy
I tried the script and had to get a hexdigest to get the value providedMy test:SimplyMEPIS-3.3.1-1.iso
checksum: 41a19060d3bb37bd596708ba77964491i got: 41a19060d3bb37bd596708ba77964491Do people normally provide md5 checksum in a hexadecimal string?Besides that, is the script reliable?
Replies:Rajesh Sathyamoorthy wrote:How do you calculate the md5 checksum of a file?so far  i got this,import md5obj = md5.new()file = open( 'filename',  'rb')
data = "">obj.update(data)checksum = md5.digest()Is this correct? Is there anything else i should do before comparing thechecksum with the one provided for the file?Fredrik Lundh wrote:
the script has some obvious bugs, but nothing you won't discover simplyby running the program...  (did you try that?  what happened?)Nainto wrote:Take a look at: 
http://effbot.org/librarybook/md5.htm
-- 
http://mail.python.org/mailman/listinfo/python-list

Need help on left padding

2008-04-28 Thread rajesh kataraki
Hello,

 My requirement is I am using one variable ex. var = 5 which is
integer.
And this variable, I m using in some string. But I want this var
to be used as 005 again integer in this string.

 The snippet of string is as follows:

 container_name = "%s-%d-dso-%s.so" % (platform_affix,var, rteset)


 Please let me know how can I implement this efficiently in python
language.

Need help urgent.

Thanks,
-Rajesh
--
http://mail.python.org/mailman/listinfo/python-list


zipfile module

2006-03-29 Thread Rajesh Sathyamoorthy
Hi,I know how to write files to a zip file but i was wondering if there was a way to add a empty folder to the zip file using the zipfile module? I can only write files and not directories to a zip file.Thank You.

-- 
http://mail.python.org/mailman/listinfo/python-list

reading files in small chunks?

2006-04-13 Thread Rajesh Sathyamoorthy
Hi,I wanted to know why it is more efficient to read a file in smaller chunks ( using file() or open() )? If this is not done, will this lead to errors in the data read or just results in slower performance?
Thank You.
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: reading files in small chunks?

2006-04-14 Thread Rajesh Sathyamoorthy
Hi,Could I have some links? It would be very helpful.Thank You.On 4/14/06, Felipe Almeida Lessa wrote:
Em Sex, 2006-04-14 às 13:45 +0800, Rajesh Sathyamoorthy escreveu:> I wanted to know why it is more efficient to read a file in smaller> chunks ( using file() or open() )?It's more efficient in some cases, and worse on others. It also depends
on how you implement the read loop. I won't elaborate too much here,there are loads of sites and books that talk about this topic.> If this is not done, will this lead to errors in the data read or just
> results in slower performance?It doesn't corrupt anything, unless you have a buggy hardware.--Felipe.
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: reading files in small chunks?

2006-04-14 Thread Rajesh Sathyamoorthy
Hi,What chunk sizes do you normally use in your code?Thank You.On 4/14/06, Amit Khemka <[EMAIL PROTECTED]
> wrote:On 4/14/06, Rajesh Sathyamoorthy <
[EMAIL PROTECTED]> wrote:> Hi,>> I wanted to know why it is more efficient to read a file in smaller chunks (> using file() or open() )? If this is not done, will this lead to errors in
> the data read or just results in slower performance?>>  Thank You.It has basically to do with disk seeks and cache+memory utilization.and you can look around for the same for details on any of your fav
search engine.cheers,amit.>> --> http://mail.python.org/mailman/listinfo/python-list>>--
Amit Khemka -- onyomo.comHome Page: www.cse.iitd.ernet.in/~csd00377Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
-- 
http://mail.python.org/mailman/listinfo/python-list