简体   繁体   中英

IDE for Python: test a script

Is there any IDE that allows to run a script in testing mode, allowing to replace at runtime, some values, like a folder or else? I have a program that will have to run on a network i have no access to where I develop. Since it will use some specific folders to pick up files, I was wondering if ie I could use an IDE that using some parameters will translate all that is like \\corporate\\disk-c\\myfolder into ac:\\myfolder.

Thanks!

M

In absence of some other file based config, you could just keep the variable definitions in aa file that you import in the main script (eg, config.py ), then have two different versions of that file for 'on' and 'off' network, (or ' development' and 'production', whatever) with the appropriate settings. No IDE needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM