How to modify sys.path.extend() in python console from pycharm?

Answered

When I start the python console in pycharm, it automatically executes a command 

 

    import sys; print('Python %s on %s' % (sys.version, sys.platform))
    sys.path.extend([ folder of the project] )

 

I have attached to the same window 4 projects in which I am working in parallel, and I would like pycharm to run the sys.path.extend() command on the folders from the 4 projects but currently it only runs this command on the path to the folder from the first project I oppened. Is there a way to change this?

 

To make it clear, now it performs:

     sys.path.extend(['route_to_first_project'] )

 

And I would like:

    sys.path.extend(['route_to_first_project', 'route_to_second_project', 'route_to_third_project', 'route_to_fourth_project'] )

 

 

 

1 comment
Comment actions Permalink

You can customize the Starting script in Settings/Preferences | Build, Execution, Deployment | Console | Python Console

0

Please sign in to leave a comment.