KIEV (Reuters) - Ukrainian President Viktor Yanukovich signalled on Thursday that he would let jailed opponent Yulia Tymoshenko go to Germany for medical treatment, but only if she went there as a convicted person.
With the signing this month of landmark agreements with the European Union hanging in the balance over the Tymoshenko question, Yanukovich took a hard line saying the law could not be used "as a means of evading criminal responsibility".
Ex-prime minister Tymoshenko, Yanukovich's most dangerous opponent, was jailed for seven years in 2011 for abuse of office after what the EU says was a political trial.
The EU sees her as a victim of "selective justice", which it wants ended in the ex-Soviet republic as a condition for signing a free trade agreement with Ukraine on November 28 at a summit in Vilnius, Lithuania.
The accords should mark a historic shift westwards by Ukraine away from Russia and the proceedings are being watched closely by Moscow, which has threatened trade counter-measures. The Kremlin wants Kiev to enter an alternative, Moscow-backed customs union.
Failure to sign in Vilnius will be a serious blow for Yanukovich, who has set integration with Europe as his main foreign policy aim.
Despite this, he has stubbornly taken a hard line over Tymoshenko - whom he only narrowly beat for the presidency in a run-off in February 2010 - apparently fearing a comeback by her could threaten his re-election chances in 2015.
With the clock ticking down to the Vilnius summit, the chances of a deal appear to hinge on a meeting next Tuesday of the Ukrainian parliament, which will try to hash out a draft law to release Tymoshenko to be treated in Germany for chronic back pain.
But Yanukovich has to sign any such law for it to enter into force. He has made clear he will not grant her a pardon and indicated he would only agree to allow her to go temporarily as a convicted person.
The 52-year-old politician has been receiving treatment for spinal problems from German doctors in a hospital in the northern town of Kharkiv where she is held under prison guard.
Yanukovich said five drafts were under discussion by parliament ahead of the November 19 meeting. "If such a consensus is found ... (and) if it is not a means of evading criminal responsibility, I think this law will be adopted," he said in comments on his web site.
"The law ... must apply not only to Tymoshenko but to all citizens," he added.
This implied that, as a convicted person, she would have to return to Ukraine to complete her sentence after treatment and would be ruled out from taking part in political activity.
Two EU envoys will attend the special parliamentary session and report back to the 28-member bloc.
The opposition backing Tymoshenko says it will now accept any compromise to secure her release -- apparently setting their faith on a subsequent ruling by the European Court of Human Rights that would quash the verdict and her sentence.
But the EU bloc has to be convinced that Ukraine had met basic democratic criteria - including ending "selective justice" - for the accords to be signed in Vilnius.
Former Polish President Aleksander Kwasniewski, one of the EU envoys who have shuttled in and out of Kiev over 18 months on a mediating mission, said on Wednesday that he saw a "50-50" percent chance of finding a solution.
Germany on Wednesday warned that time was running out. Summit host Lithuania said there would be no success unless Ukraine produced "results".
(Additional reporting by Pavel Polityuk; Editing by Sonya Hepinstall)