Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Splitting a path
Post: RE: Splitting a path

Thanks
CardBoy General Coding Help 2 2,510 Feb-05-2018, 10:20 AM
    Thread: Splitting a path
Post: Splitting a path

Hi Given these two file paths /tmp/tmpya51Zz/Test.php /tmp/tmpya51Zz/_unittest/TestTest.phpPlease can someone tell me the most efficient way to extract Test.php _unittest/TestTest.php [/python] Than...
CardBoy General Coding Help 2 2,510 Feb-05-2018, 09:46 AM
    Thread: Passing string args to Popen
Post: RE: Passing string args to Popen

Hi Thanks for the reply This is an improvement though not quite right. When the diff command is executed from the command line the arguments --old-line-format="" means that the old line is not displ...
CardBoy General Coding Help 3 4,265 Jan-16-2018, 08:46 AM
    Thread: Passing string args to Popen
Post: Passing string args to Popen

Hi I want to execute this command via Popen in my python script Quote: diff --old-line-format="" --new-line-format="%5dn> %L" --unchanged-line-format="" /tmp/tmp923MGb/base.php /tmp/tmp923MGb/Te...
CardBoy General Coding Help 3 4,265 Jan-15-2018, 05:30 PM
    Thread: Properly share logger objects
Post: Properly share logger objects

Hi In python file 1 I have       def main():                    logger = logging.getLogger("pre-commit-logger")            handler = logging.FileHandler(log_file)            logger.addHandler(handl...
CardBoy General Coding Help 2 3,173 Jun-26-2017, 10:07 AM
    Thread: syntax error
Post: syntax error

Hi I am using python 2.6 and python-gitlab 0.21.2 But running I get this error which I do not understand as it looks ok to me Error:Traceback (most recent call last):  File "/usr/bin/gitlab", line ...
CardBoy General Coding Help 2 3,654 Jun-16-2017, 09:47 AM

User Panel Messages

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