Global Variable requires extra cleanup in Python Scripts

More
9 months 4 weeks ago #25813 by prashant
Hellos

Earlier we hardcoded a path location , which worked fine in python script 
tokens_json_path = r'F:\basecamp\json.token'

When the same was stored in a variable as #pm_bc# = F:\basecamp\json.token , it requires the stripping of additional \\\\ to \\ to work 
    tokens_json_path = etltools.GetVariable('#pm_bc#').replace('\\\\','\\').strip()

I did try storing it with single quote or double quote , but the result was same. Backlash escaping is very aggressive. 

If we can't change this behaviour , so then we can add it as a FAQ

 

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save