Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Line by line execution
Post: Line by line execution

I have a script that does the job but only for one file. Just to explain what`s going on here:   import sys sys.path.append("C:\\Program Files\\FME\\fmeobjects\\python27") import fmeobjects runner =...
Filthy_McNasty General Coding Help 1 2,944 Dec-11-2017, 10:01 PM
    Thread: Copy folders to newly created folder and append
Post: RE: Copy folders to newly created folder and appen...

This created new Working folder but for some reason it does not coy created folders from Python_1, any idea where the error is: import os import shutil root_path = r"C:\GEOS455\Assign2" new_main_f...
Filthy_McNasty General Coding Help 5 5,096 Feb-21-2017, 03:59 PM
    Thread: Copy folders to newly created folder and append
Post: RE: Copy folders to newly created folder and appen...

But I have to use new script, I have to import Pytohn_1 into new script, not change directory and then I copy all created files ......
Filthy_McNasty General Coding Help 5 5,096 Feb-20-2017, 06:37 PM
    Thread: Copy folders to newly created folder and append
Post: Copy folders to newly created folder and append

This is the first part that works , basically created 3 new mandatory folders (1,2,3) in the main TEST directory and if user wants to add any new one they can do so. This is Python_1 import os root_pa...
Filthy_McNasty General Coding Help 5 5,096 Feb-20-2017, 06:22 PM
    Thread: Copy file and rename it
Post: RE: Copy file and rename it

(Feb-15-2017, 10:58 PM)wavic Wrote: This is just an IPython interpreter. Like the regular one with extras In Python the indentation defines the code blocks brackets in the most of the other programm...
Filthy_McNasty General Coding Help 10 7,884 Feb-16-2017, 03:08 PM
    Thread: Copy file and rename it
Post: RE: Copy file and rename it

I know its a mess, thats why I am asking for help Not sure I understand your code.......... Thank you
Filthy_McNasty General Coding Help 10 7,884 Feb-15-2017, 10:37 PM
    Thread: Copy file and rename it
Post: RE: Copy file and rename it

That link doesn`t answer my main problem, loop that ask user to enter a value and repeat the prompt until they do so. This script just copy the file but it`s not what I need. import os root_path =...
Filthy_McNasty General Coding Help 10 7,884 Feb-15-2017, 09:04 PM
    Thread: Copy file and rename it
Post: Copy file and rename it

I have to copy already created text file, Layer_Name.txt , so new copied file has to be renamed with user input initials (IN_Layer_Name.txt) If the user does not enter a value then repeat the prompt u...
Filthy_McNasty General Coding Help 10 7,884 Feb-15-2017, 07:31 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020